private void button1_build_Click(object sender, RoutedEventArgs e) { try { m1.InitialMatrix = GraphFiInput.fiInput(textBox1_input.Text); //ввод представления в матрицу } catch (IncorrectInputException ex) { MessageBox.Show(ex.Message); } try { drawInitialGraph(m1, dataGridInitial1, graphDraw_1); } catch (NullMatrixException ex) { MessageBox.Show(ex.Message); } }
private void button2_build_Click(object sender, RoutedEventArgs e) { try { m2.InitialMatrix = GraphFiInput.fiInput(textBox2_input.Text); } catch (IncorrectInputException ex) { MessageBox.Show(ex.Message); } try { drawInitialGraph(m2, dataGridInitial2, graphDraw_2); } catch (NullMatrixException ex) { MessageBox.Show(ex.Message); } }