Exemple #1
0
        private void Login_Click(object sender, EventArgs e)
        {
            EmployeeAuthentication auth = new EmployeeAuthentication();

            if (auth.Login(Email.Text, Password.Text))
            {
                /*Home home = new Home(auth);
                 * home.ShowDialog();*/


                var frm = new CarList(auth);
                frm.Location      = this.Location;
                frm.StartPosition = FormStartPosition.Manual;
                frm.FormClosing  += delegate { this.Show(); };
                frm.Show();
                this.Hide();
            }
            else
            {
                ErrorMessage.Visible = true;
            }
        }