Example #1
0
 private void biLoginButton_Click(object sender, EventArgs e)
 {
     //Verify UserName, alert if user enterted invalid information and clear contents.  EDP
     if (lfUserNameTextBox.Text != "")
     {
         MessageBox.Show("Please Enter a Valid Login User Name", "Invalid Login UserName", MessageBoxButtons.OK);
         lfUserNameTextBox.Text = "";
         lfPasswordTextBox.Text = "";
     }
     else
     {
         if (lfPasswordTextBox.Text != "")
         {
             MessageBox.Show("Please Enter a Valid Login Password", "Invalid Login Password", MessageBoxButtons.OK);
             //biUserNameTextBox.Text = "";
             //biPasswordTextBox.Text = "";
         }
         else
         {
             //Upon successful login validation, enable perspectives selection and hide login request.
             MainDashboardForm frmMD = new MainDashboardForm();
             this.Hide();
             frmMD.Show();
         }
     }
 }
 private void returnToMenuToolStripMenuItem_Click(object sender, EventArgs e)
 {
     //Returns the user back to the main navigation menu. EDP
     MainDashboardForm frmMD = new MainDashboardForm();
     this.Hide();
     frmMD.Show();
 }