예제 #1
0
 private void employeeloginbutton_Click(object sender, EventArgs e)
 {
     ep.employeeId       = employeeid.Text;
     ep.employeePassword = employeepassword.Text;
     try
     {
         if (el.EmployeeValid(ep))
         {
             EmployeeManage.EmployeeMain em = new EmployeeManage.EmployeeMain(ep);
             em.Show();
             this.Parent.Parent.Visible = false;
         }
         else
         {
             MessageBox.Show(" Wrong Credentials");
         }
     }
     catch (Exception exc)
     {
         MessageBox.Show("Error " + exc.Message);
     }
 }
예제 #2
0
 private void employeeloginbutton_Click(object sender, EventArgs e)
 {
     ep.employeeId       = employeeid.Text;
     ep.employeePassword = employeepassword.Text;
     try
     {
         if (el.EmployeeValid(ep))
         {
             EmployeeManage.EmployeeMain em = new EmployeeManage.EmployeeMain(ep);
             em.Show();
             this.Parent.Parent.Visible = false;
         }
         else
         {
             MetroMessageBox.Show(this, "Wrong Credentials", "Hey there!", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         }
     }
     catch (Exception exc)
     {
         MetroMessageBox.Show(this, exc.Message, "Something Went Wrong !", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
예제 #3
0
        private void employeeloginbutton_Click(object sender, EventArgs e)
        {
            ep.employeeId = employeeid.Text;
            ep.employeePassword = employeepassword.Text;
            try
            {

                if (el.EmployeeValid(ep))
                {
                    EmployeeManage.EmployeeMain em = new EmployeeManage.EmployeeMain(ep);
                    em.Show();
                    this.Parent.Parent.Visible = false;
                }
                else
                {
                    MessageBox.Show(" Wrong Credentials");
                }
            }
            catch (Exception exc)
            {

                MessageBox.Show("Error " + exc.Message);
            }
        }