Esempio n. 1
0
        private static void run()
        {
            int[,] Matrix = ReadIntMatrix();
            IntMatrix intMatrix = new IntMatrix(Matrix);

            int[] Arr = intMatrix.GetArr();
            WriteArr(Arr);
        }
Esempio n. 2
0
 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, "ошибка");
     }
 }