コード例 #1
0
        //method that displays the LoginRegister window after the declared time above occurs
        private void Dt_Tick(object sender, EventArgs e)
        {
            dt.Stop();

            LoginRegister lr = new LoginRegister();

            lr.Show();

            this.Close();
        }
コード例 #2
0
        //Method that ensures the user really wants to sign out. If they click yes it will show the LoginRegister window else it will return them to the previous menu
        public void SignOut()
        {
            MessageBoxResult res = MessageBox.Show("Are you sure you want to sign out?", "Confirmation", MessageBoxButton.YesNo);

            if (res == MessageBoxResult.Yes)
            {
                LoginRegister mw = new LoginRegister();
                mw.Show();
                this.Close();
            }
        }