コード例 #1
0
ファイル: login.xaml.cs プロジェクト: mbithy/Octane
 private void ClosingEventHandler(object sender, DialogClosingEventArgs eventargs)
 {
     if (!_isProceed) return;
     var mordernView = new MordernView();
     mordernView.Show();
     ModernLogin.RootPage.Close();
 }
コード例 #2
0
ファイル: LoginView.xaml.cs プロジェクト: mbithy/Octane
 private void SignIn_Click(object sender, RoutedEventArgs e)
 {
     if (UserEmail.Text.Trim() != String.Empty && UserPassword.Password.Trim() != String.Empty)
     {
         if (!UserIsValid(UserEmail.Text.Trim(), UserPassword.Password.Trim()))
         {
             if (!_passwordWasChanged)
             {
                 MessageBox.Show("The Email and Password entered do not match our records", "No User Found");
             }
             else
             {
                 MessageBox.Show(
                     "Your password was changed " + _daysAgo +
                     " days ago.\nIf this was not you you should know that you data\n was compromised",
                     "Password was changed");
             }
         }
         else
         {
             /*Main_View.MainWindow mainWindow= new MainWindow();
             mainWindow.Show();*/
             MordernView mordernView= new MordernView();
             mordernView.Show();
             Close();
         }
     }
     else
     {
         MessageBox.Show("You must enter both an Email address and a password!", "Incomplete");
     }
 }