/// <summary> /// this statement is used to Verify the username and password match with the database /// otherwise return the message of incorrect details. /// written by author : Abdelrahman Ahmed /// </summary> private void LoginInit() { if (LoginAuth.VerifyLogin(Username_txt.Text, Password_txt.Password)) { MainEvent window = new MainEvent(); window.Show(); this.Close(); } else { progbar.Opacity = 0; MessageBox.Show("Incorrect details. Please try again."); } }