Exemple #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            this.TopMost = true;
            this.Hide();
            var form = new Sklad();

            form.Closed += (s, args) => this.Close();
            form.Show();
        }
Exemple #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            DialogResult result = MessageBox.Show(
                "Вы точно хотите перейти?",
                "Сообщение",
                MessageBoxButtons.YesNo,
                MessageBoxIcon.Information);

            if (result == DialogResult.Yes)
            {
                this.Hide();
                var form = new Sklad();
                form.Closed += (s, args) => this.Close();
                form.Show();
            }
        }