Пример #1
0
 private void button_rozmiesc_Copy1_Click(object sender, RoutedEventArgs e)
 {
     if (Jądro.NAJLEPSZE != null && J.wm != null)
     {
         J.dodaj_matryce();
         J.wm.Show();
         J.R.Rysuj(J.wm, Jądro.NAJLEPSZE);
     }
 }
Пример #2
0
 private void button_Click(object sender, RoutedEventArgs e)
 {
     if (Sprawdz.CzyNull(textBox_matryca_szerokość, textBox_matryca_wysokość, textBox_matryca_odstep))
     {
         if (nm != 0)
         {
             J.zmień_matryce(int.Parse(textBox_matryca_szerokość.Text), int.Parse(textBox_matryca_wysokość.Text));
             Close();
         }
         else
         {
             J.odstep = Convert.ToInt32(textBox_matryca_odstep.Text);
             J.dodaj_matryce();
         }
     }
 }