using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace ZeroBruta
{
public partial class ZeroFineScost : Form
{
public int xd;
public int yd;
public int xs;
public int ys;
private ZeroBruta mio;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.TextBox textBox2;
public ZeroFineScost(ZeroBruta Z)
{
mio = Z;
InitializeComponent();
}
private void InitializeComponent()
{
System.ComponentModel.
ComponentResourceManager resources
= new System.ComponentModel.
ComponentResourceManager(typeof(ZeroFineScost
));
this.
button1 = new System.
Windows.
Forms.
Button();
this.
button2 = new System.
Windows.
Forms.
Button();
this.
textBox1 = new System.
Windows.
Forms.
TextBox();
this.
textBox2 = new System.
Windows.
Forms.
TextBox();
this.
button3 = new System.
Windows.
Forms.
Button();
this.
button4 = new System.
Windows.
Forms.
Button();
this.SuspendLayout();
//
// button1
//
this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.
button1.
Location = new System.Drawing.
Point(12, 25
);
this.button1.Name = "button1";
this.
button1.
Size = new System.Drawing.
Size(43, 23
);
this.button1.TabIndex = 0;
this.button1.Text = "X";
this.button1.UseVisualStyleBackColor = false;
this.
button1.
Click += new System.
EventHandler(this.
button1_Click);
//
// button2
//
this.button2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.
button2.
Location = new System.Drawing.
Point(61, 69
);
this.button2.Name = "button2";
this.
button2.
Size = new System.Drawing.
Size(43, 23
);
this.button2.TabIndex = 1;
this.button2.Text = "Y";
this.button2.UseVisualStyleBackColor = false;
this.
button2.
Click += new System.
EventHandler(this.
button2_Click);
//
// textBox1
//
this.
textBox1.
Location = new System.Drawing.
Point(61, 27
);
this.textBox1.Name = "textBox1";
this.
textBox1.
Size = new System.Drawing.
Size(43, 20
);
this.textBox1.TabIndex = 2;
//
// textBox2
//
this.
textBox2.
Location = new System.Drawing.
Point(61, 98
);
this.textBox2.Name = "textBox2";
this.
textBox2.
Size = new System.Drawing.
Size(43, 20
);
this.textBox2.TabIndex = 3;
//
// button3
//
this.button3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.
button3.
Location = new System.Drawing.
Point(110, 25
);
this.button3.Name = "button3";
this.
button3.
Size = new System.Drawing.
Size(43, 23
);
this.button3.TabIndex = 4;
this.button3.Text = "X";
this.button3.UseVisualStyleBackColor = false;
this.
button3.
Click += new System.
EventHandler(this.
button3_Click);
//
// button4
//
this.button4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(192)))));
this.
button4.
Location = new System.Drawing.
Point(61, 124
);
this.button4.Name = "button4";
this.
button4.
Size = new System.Drawing.
Size(43, 23
);
this.button4.TabIndex = 5;
this.button4.Text = "Y";
this.button4.UseVisualStyleBackColor = false;
this.
button4.
Click += new System.
EventHandler(this.
button4_Click);
//
// ZeroFineScost
//
this.
AutoScaleDimensions = new System.Drawing.
SizeF(6F, 13F
);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
this.
ClientSize = new System.Drawing.
Size(165, 175
);
this.Controls.Add(this.button4);
this.Controls.Add(this.button3);
this.Controls.Add(this.textBox2);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Name = "ZeroFineScost";
this.Text = "ZeroFineScost";
this.ResumeLayout(false);
this.PerformLayout();
}
private void button1_Click(object sender, EventArgs e)
{
xs = Convert.ToInt32(textBox1.Text);
mio.settafinescostamento_xs(xs);
this.Close();
}
private void button2_Click(object sender, EventArgs e)
{
ys = Convert.ToInt32(textBox2.Text);
mio.settafinescostamento_ys(ys);
this.Close();
}
private void button3_Click(object sender, EventArgs e)
{
xd = Convert.ToInt32(textBox1.Text);
mio.settafinescostamento_xd(xd);
this.Close();
}
private void button4_Click(object sender, EventArgs e)
{
yd = Convert.ToInt32(textBox2.Text);
mio.settafinescostamento_yd(yd);
this.Close();
}
}
}