Пример #1
0
        private void pictureBox2_Click(object sender, EventArgs e)
        {
            Employee_Dashboard ed = new Employee_Dashboard(id);

            this.Close();
            ed.Show();
        }
Пример #2
0
        private void login_Click(object sender, EventArgs e)
        {
            ServiceReference1.ServiceClient client = new ServiceReference1.ServiceClient();
            var id = client.loginEmployee(textBox1.Text.ToString(), password.Text.ToString());

            if (id == 0)
            {
                MessageBox.Show("Invalid Credentials.Try Again..");
            }
            else
            {
                MessageBox.Show("Logged In Successfully..");
                Employee_Dashboard ed = new Employee_Dashboard(id);
                this.Close();
                ed.Show();
            }
        }