コード例 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            this.Hide();
            var login = new startup();

            login.Closed += (s, args) => this.Close();
            login.Show();
        }
コード例 #2
0
        internal static void logout(Form close)
        {
            valid  = false;
            UserID = "";
            dp     = "";
            pos    = "";

            close.Hide();
            var home = new startup();

            home.Closed += (s, args) => close.Close();
            home.Show();
        }