Пример #1
0
 private void Input_Click(object sender, RoutedEventArgs e)
 {
     if (textBoxIsDigit(width) && textBoxIsDigit(height))
     {
         string color = default(string);
         if (red)
         {
             color = "red";
         }
         else if (green)
         {
             color = "green";
         }
         else
         {
             color = "blue";
         }
         Task2.InputData(Convert.ToDouble(width.Text.ToString()), Convert.ToDouble(height.Text.ToString()), color);
     }
 }
Пример #2
0
 private void Button_Click_2(object sender, RoutedEventArgs e)
 {
     task2Object = new Task2();
     task2Object.Show();
 }