private void buttonLogin_Click(object sender, EventArgs e)
        {
            List <Employee> AllEmployee = empdbhelper.GetAllEmployee();
            int             flag        = 0;

            foreach (Employee item in AllEmployee)
            {
                if (item.Email == textEmail.Text && item.Epassword == textPassword.Text)
                {
                    flag = 1;
                    break;
                }
            }
            if (flag == 1)
            {
                this.Hide();
                EmployeePanel jobopen = new EmployeePanel();
                jobopen.ShowDialog();
            }
            else
            {
                MessageBox.Show("invalid login");
                EmployeeLogin cd = new EmployeeLogin();
                this.Hide();
                cd.ShowDialog();
            }
        }
        private void buttonEmployeeLogin_Click(object sender, EventArgs e)
        {
            EmployeeLogin EmpLogin = new EmployeeLogin();

            this.Hide();
            EmpLogin.Show();
        }