int x1, y1, k1,
x2, y2, k2 = 0;
int i = 0;
x1 = int.TryParse(this.x1.Text, out i) ? Convert.ToInt32(this.x1.Text) : 0;
y1 = int.TryParse(this.y1.Text, out i) ? Convert.ToInt32(this.y1.Text) : 0;
k1 = int.TryParse(this.k1.Text, out i) ? Convert.ToInt32(this.k1.Text) : 0;
x2 = int.TryParse(this.x2.Text, out i) ? Convert.ToInt32(this.x2.Text) : 0;
y2 = int.TryParse(this.y2.Text, out i) ? Convert.ToInt32(this.y2.Text) : 0;
k2 = int.TryParse(this.k2.Text, out i) ? Convert.ToInt32(this.k2.Text) : 0;
Console.WriteLine("x1: " + x1);
Console.WriteLine("y1: " + y1);
Console.WriteLine("k1: " + k1);
Console.WriteLine("x2: " + x2);
Console.WriteLine("y2: " + y2);
Console.WriteLine("k2: " + k2);
decimal trezultatas = (x1 * y1) * k1;
decimal trezultatas2 = (x2 * y2) * k2;
decimal rezultatas = trezultatas / 1000000;
decimal rezultatas2 = trezultatas2 / 1000000;
decimal brezultatas = rezultatas + rezultatas2;
Console.WriteLine("trez: " + trezultatas);
Console.WriteLine("rez :" + brezultatas);
label8.Text = brezultatas.ToString("0.00 m\u00b2");