Exemplo n.º 1
0
 private void btnLogin_Click(object sender, EventArgs e)
 {
     if (UserLoginService.UserLogin(txtUserName.Text.Trim(), txtPassword.Text.Trim()) == true)
     {
         AudioPlayService.SoundPlay(Resources.GLaDOS_Hello_world);
         Program.SetLoginFlag = true;
         this.Close();
     }
     else
     {
         MessageBox.Show(Language.Msg_UserOrPassword_Error, Language.Caption_Error, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Exemplo n.º 2
0
 private void FormLogin_Load(object sender, EventArgs e)
 {
     AudioPlayService.SoundPlay(Resources.GLaDOS_Welcome);
     labVersion.Text += System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
 }
Exemplo n.º 3
0
 private void btnExit_Click(object sender, EventArgs e)
 {
     AudioPlayService.SoundPlay(Resources.GLaDOS_I_love_you);
     Thread.Sleep(1000);
     this.Close();
 }