コード例 #1
0
        private static void Task()
        {
            Console.WriteLine("первый массив");
            int[,] FirstArr2 = ConsoleTools.InputArr2(false);
            Console.WriteLine("второй массив");
            int[,] SecondArr2 = ConsoleTools.InputArr2(false);
            Array2Tools array2Tools = new Array2Tools(FirstArr2);

            array2Tools.GetOverlayPoint(SecondArr2, out int Row, out int Column);
            ConsoleTools.OutputStr(GetString(Row, Column));
            Console.ReadKey();
        }
コード例 #2
0
 private void SearchBtn_Click(object sender, EventArgs e)
 {
     try
     {
         int[,] FirstArr2  = DataGridViewUtils.GridToArray2 <int>(FirstArray2);
         int[,] SecondArr2 = DataGridViewUtils.GridToArray2 <int>(SecondArray2);
         Array2Tools a2t = new Array2Tools(FirstArr2);
         if (a2t.GetOverlayPoint(SecondArr2, out int Row, out int Column))
         {
             labelOut.Text = "(" + Row + ";" + Column + ";)";
             save.Enabled  = true;
         }
         else
         {
             labelOut.Text = "точка не существует";
             save.Enabled  = false;
         }
     }