Questo sito utilizza cookies solo per scopi di autenticazione sul sito e nient'altro. Nessuna informazione personale viene tracciata. Leggi l'informativa sui cookies.
Username: Password: oppure
ZeroBruta + ZeroDizio NEW - ZeroFineScost.cs

ZeroFineScost.cs

Caricato da:
Scarica il programma completo

  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Text;
  7. using System.Windows.Forms;
  8.  
  9. namespace ZeroBruta
  10. {
  11.     public partial class ZeroFineScost : Form
  12.     {
  13.         public int xd;
  14.         public int yd;
  15.  
  16.         public int xs;
  17.         public int ys;
  18.  
  19.         private ZeroBruta mio;
  20.  
  21.         private System.Windows.Forms.Button button1;
  22.         private System.Windows.Forms.Button button2;
  23.         private System.Windows.Forms.TextBox textBox1;
  24.         private System.Windows.Forms.TextBox textBox2;
  25.        
  26.         public ZeroFineScost(ZeroBruta Z)
  27.         {
  28.             mio = Z;
  29.             InitializeComponent();
  30.         }
  31.  private void InitializeComponent()
  32.         {
  33.             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ZeroFineScost));
  34.             this.button1 = new System.Windows.Forms.Button();
  35.             this.button2 = new System.Windows.Forms.Button();
  36.             this.textBox1 = new System.Windows.Forms.TextBox();
  37.             this.textBox2 = new System.Windows.Forms.TextBox();
  38.             this.button3 = new System.Windows.Forms.Button();
  39.             this.button4 = new System.Windows.Forms.Button();
  40.             this.SuspendLayout();
  41.             //
  42.             // button1
  43.             //
  44.             this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
  45.             this.button1.Location = new System.Drawing.Point(12, 25);
  46.             this.button1.Name = "button1";
  47.             this.button1.Size = new System.Drawing.Size(43, 23);
  48.             this.button1.TabIndex = 0;
  49.             this.button1.Text = "X";
  50.             this.button1.UseVisualStyleBackColor = false;
  51.             this.button1.Click += new System.EventHandler(this.button1_Click);
  52.             //
  53.             // button2
  54.             //
  55.             this.button2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
  56.             this.button2.Location = new System.Drawing.Point(61, 69);
  57.             this.button2.Name = "button2";
  58.             this.button2.Size = new System.Drawing.Size(43, 23);
  59.             this.button2.TabIndex = 1;
  60.             this.button2.Text = "Y";
  61.             this.button2.UseVisualStyleBackColor = false;
  62.             this.button2.Click += new System.EventHandler(this.button2_Click);
  63.             //
  64.             // textBox1
  65.             //
  66.             this.textBox1.Location = new System.Drawing.Point(61, 27);
  67.             this.textBox1.Name = "textBox1";
  68.             this.textBox1.Size = new System.Drawing.Size(43, 20);
  69.             this.textBox1.TabIndex = 2;
  70.             //
  71.             // textBox2
  72.             //
  73.             this.textBox2.Location = new System.Drawing.Point(61, 98);
  74.             this.textBox2.Name = "textBox2";
  75.             this.textBox2.Size = new System.Drawing.Size(43, 20);
  76.             this.textBox2.TabIndex = 3;
  77.             //
  78.             // button3
  79.             //
  80.             this.button3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
  81.             this.button3.Location = new System.Drawing.Point(110, 25);
  82.             this.button3.Name = "button3";
  83.             this.button3.Size = new System.Drawing.Size(43, 23);
  84.             this.button3.TabIndex = 4;
  85.             this.button3.Text = "X";
  86.             this.button3.UseVisualStyleBackColor = false;
  87.             this.button3.Click += new System.EventHandler(this.button3_Click);
  88.             //
  89.             // button4
  90.             //
  91.             this.button4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
  92.             this.button4.Location = new System.Drawing.Point(61, 124);
  93.             this.button4.Name = "button4";
  94.             this.button4.Size = new System.Drawing.Size(43, 23);
  95.             this.button4.TabIndex = 5;
  96.             this.button4.Text = "Y";
  97.             this.button4.UseVisualStyleBackColor = false;
  98.             this.button4.Click += new System.EventHandler(this.button4_Click);
  99.             //
  100.             // ZeroFineScost
  101.             //
  102.             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
  103.             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
  104.             this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
  105.             this.ClientSize = new System.Drawing.Size(165, 175);
  106.             this.Controls.Add(this.button4);
  107.             this.Controls.Add(this.button3);
  108.             this.Controls.Add(this.textBox2);
  109.             this.Controls.Add(this.textBox1);
  110.             this.Controls.Add(this.button2);
  111.             this.Controls.Add(this.button1);
  112.             this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
  113.             this.Name = "ZeroFineScost";
  114.             this.Text = "ZeroFineScost";
  115.             this.ResumeLayout(false);
  116.             this.PerformLayout();
  117.  
  118.         }
  119.  
  120.         private void button1_Click(object sender, EventArgs e)
  121.         {
  122.             xs = Convert.ToInt32(textBox1.Text);
  123.             mio.settafinescostamento_xs(xs);
  124.             this.Close();
  125.         }
  126.  
  127.         private void button2_Click(object sender, EventArgs e)
  128.         {
  129.             ys = Convert.ToInt32(textBox2.Text);
  130.             mio.settafinescostamento_ys(ys);
  131.             this.Close();
  132.         }
  133.  
  134.         private void button3_Click(object sender, EventArgs e)
  135.         {
  136.             xd = Convert.ToInt32(textBox1.Text);
  137.             mio.settafinescostamento_xd(xd);
  138.             this.Close();
  139.         }
  140.  
  141.         private void button4_Click(object sender, EventArgs e)
  142.         {
  143.             yd = Convert.ToInt32(textBox2.Text);
  144.             mio.settafinescostamento_yd(yd);
  145.             this.Close();
  146.         }
  147.     }
  148. }