Пример #1
0
        private void Button2_Click(object sender, EventArgs e)
        {
            Trains t = new Trains();

            t.Show();
            this.Hide();
        }
Пример #2
0
        private void Button2_Click_1(object sender, EventArgs e)
        {
            Trains train = new Trains();

            train.Show();
            this.Close();
        }