private void button1_Click(object sender, EventArgs e)
        {
            Manage_Employee me = new Manage_Employee();

            this.Close();
            me.Show();
        }
Esempio n. 2
0
        private void pictureBox3_Click(object sender, EventArgs e)
        {
            Manage_Employee me = new Manage_Employee();

            this.Close();
            me.Show();
        }
 private void button3_Click(object sender, EventArgs e)
 {
     if (dataGridView1.CurrentRow.Index != -1)
     {
         ServiceReference1.ServiceClient client = new ServiceReference1.ServiceClient();
         client.deleteEmployee(Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value));
         Manage_Employee me = new Manage_Employee();
         this.Close();
         me.Show();
     }
 }
Esempio n. 4
0
        private void login_Click(object sender, EventArgs e)
        {
            ServiceReference1.ServiceClient client = new ServiceReference1.ServiceClient();
            if (login.Text == "SAVE")
            {
                client.addEmployee(textBox1.Text.ToString(), textBox2.Text.ToString(), textBox3.Text.ToString(), textBox4.Text.ToString(), textBox5.Text.ToString(), textBox6.Text.ToString(), dateTimePicker1.Value, comboBox1.Text.ToString(), comboBox2.Text.ToString(), textBox8.Text.ToString(), comboBox3.Text.ToString(), textBox7.Text.ToString());
            }
            else
            {
                client.updateEmployee(v1, textBox1.Text.ToString(), textBox2.Text.ToString(), textBox3.Text.ToString(), textBox4.Text.ToString(), textBox5.Text.ToString(), textBox6.Text.ToString(), dateTimePicker1.Value, comboBox1.Text.ToString(), comboBox2.Text.ToString(), textBox8.Text.ToString(), comboBox3.Text.ToString(), textBox7.Text.ToString());
            }
            Manage_Employee me = new Manage_Employee();

            Close();
            me.Show();
        }