private static void run() { int[,] Matrix = ReadIntMatrix(); IntMatrix intMatrix = new IntMatrix(Matrix); int[] Arr = intMatrix.GetArr(); WriteArr(Arr); }
private void CalcBtn_Click(object sender, EventArgs e) { try { int[,] Matrix = DataGridViewUtils.GridToArray2 <int>(InputGrid); IntMatrix intMatrix = new IntMatrix(Matrix); int[] Arr = intMatrix.GetArr(); DataGridViewUtils.ArrayToGrid(OutputGrid, Arr); save.Enabled = true; } catch (Exception eror) { save.Enabled = false; MessageBox.Show(eror.Message, "ошибка"); } }