Ejemplo n.º 1
0
        private void Unlock_Btn_Click(object sender, RoutedEventArgs e)
        {
            this.user = this.txtName.Text;
            this.pswd = this.passwordbox_NAME.Password;

            if (this.user == "TempUnlock")
            {
                if (this.pswd == "TempUnlock_KE")
                {
                    IISM.MainWindow OpenW = new IISM.MainWindow();
                    OpenW.Show();
                    this.Close();
                }
                else
                {
                    MessageBox.Show("Incorrect Password.", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
                    this.passwordbox_NAME.Password = null;
                }
            }
            else
            {
                MessageBox.Show("Incorrect UserName.", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
                this.passwordbox_NAME.Password = null;
                this.txtName.Text = null;
            }
        }
Ejemplo n.º 2
0
 private void btnRtn_Click(object sender, RoutedEventArgs e)
 {
     if (GlobalVar.GlobalValue == 10)
     {
         IISM.MainWindow OpenW = new IISM.MainWindow();
         OpenW.Show();
         this.Close();
     }
     else
     {
         IISM.MF_Forms.MainMasterFile OpenW = new IISM.MF_Forms.MainMasterFile();
         OpenW.Show();
         this.Close();
     }
 }
Ejemplo n.º 3
0
 private void btnRTN_Click(object sender, RoutedEventArgs e)
 {
     IISM.MainWindow OpenW = new IISM.MainWindow();
     OpenW.Show(); this.Close();
 }