Exemplo n.º 1
0
        private void BackToMainPage_Click(object sender, RoutedEventArgs e)
        {
            GeneralWindow objGeneralWindow = new GeneralWindow(loggedUserId);

            this.Visibility = Visibility.Hidden;
            objGeneralWindow.Show();
        }
Exemplo n.º 2
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     if (services.CheckPassword(tbxUserName.Text, tbxPassword.ToString()))
     {
         services.NickNameWrite(tbxUserName.Text);
         GeneralWindow general = new GeneralWindow()
         {
             WindowStartupLocation = WindowStartupLocation.CenterScreen
         };
         general.ShowDialog();
         this.Close();
     }
     else
     {
         MessageBox.Show("Error!");
     }
 }