Ejemplo n.º 1
0
        private void CreateMas_2_FormClosed(object sender, FormClosedEventArgs e)
        {
            this.Hide();
            Two_Mass form = this.Owner as Two_Mass;

            form.Enabled = true;
        }
Ejemplo n.º 2
0
        private void Next_Click(object sender, EventArgs e)
        {
            Two_Mass form = this.Owner as Two_Mass;

            int[,] arr = Program.array_2;
            string[] label1 = Txt1.Text.Split(new char[] { ' ' });
            string[] label2 = Txt2.Text.Split(new char[] { ' ' });
            int      row    = int.Parse(label2[0]); //строки
            int      col    = int.Parse(label1[0]); //элементы в строке

            if ((row == arr.GetLength(0) && col + 1 == arr.GetLength(1)) || (row + 1 == arr.GetLength(0) && (int)form.MasCols.Value == 1))
            {
                Next.Visible  = false;
                Send.Location = new Point(76, 75);
                Send.Show();
            }
            arr[row - 1, col - 1] = (int)Num1.Value;
            Txt1.Text             = (col + 1) + " =";
            if (col == arr.GetLength(1))
            {
                Txt2.Text = (row + 1) + " строка";
                Txt1.Text = "1 =";
            }
            Program.array_2 = arr;
        }
Ejemplo n.º 3
0
        private void Button2_Click(object sender, EventArgs e)
        {
            Two_Mass mass = new Two_Mass();

            mass.Show();
            this.Hide();
        }
Ejemplo n.º 4
0
        private void Send_Click(object sender, EventArgs e)
        {
            Program.array_2[Program.array_2.GetLength(0) - 1, Program.array_2.GetLength(1) - 1] = (int)Num1.Value;
            this.Hide();
            Two_Mass form = this.Owner as Two_Mass;

            form.Enabled           = true;
            form.OutputMas.Text    = Program.PrintMas(Program.array_2);
            form.OutputMas.Visible = true;
        }