Example #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (t.Count < 2)
     {
         t.Add(Functionality.newTriangle(Int32.Parse(x1.Text) * 2, Int32.Parse(y1.Text) * 2, Int32.Parse(x2.Text) * 2, Int32.Parse(y2.Text) * 2, Int32.Parse(x3.Text) * 2, Int32.Parse(y3.Text) * 2));
     }
     else
     {
         MessageBox.Show("Dwa trójkąty już zostały utworzone!", "Ostrzeżenie", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
     panel1.Refresh();
 }