private void Return_click(object sender, RoutedEventArgs e)
        {
            BoardsWindow win1 = new BoardsWindow();

            win1.Show();
            this.Close();
        }
Esempio n. 2
0
 private void login_Click(object sender, RoutedEventArgs e)
 {
     if (this.VM.login())
     {
         service.startup();
         MessageBox.Show("login successfully");
         BoardsWindow win1 = new BoardsWindow();
         win1.Show();
         this.Close();
     }
     else
     {
         string message = "Incorrect Email or password";
         string title   = "Error";
         MessageBox.Show(message, title);
     }
 }