Exemplo n.º 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();
        }
        private void btSignOut_Click(object sender, RoutedEventArgs e)
        {
            MessageBoxResult messageBoxResult = System.Windows.MessageBox.Show("Are you sure you want to sign out?", "Sign Out Confirmation", System.Windows.MessageBoxButton.YesNo);

            if (messageBoxResult == MessageBoxResult.Yes)
            {
                LoginRegister lr = new LoginRegister();
                lr.Show();
                this.Close();
            }
        }