Example #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            AddEmployee a1 = new AddEmployee();

            this.Hide();
            a1.Show();
        }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            AddEmployee a1 = new AddEmployee();

            a1.button3.Enabled = false;
            this.Hide();
            a1.Show();
        }
Example #3
0
        private void button2_Click(object sender, EventArgs e)
        {
            AddEmployee a1 = new AddEmployee();

            a1.label22.Text         = this.dataGridView1.CurrentRow.Cells[0].Value.ToString();
            a1.textBox1.Text        = this.dataGridView1.CurrentRow.Cells[1].Value.ToString();
            a1.textBox2.Text        = this.dataGridView1.CurrentRow.Cells[2].Value.ToString();
            a1.comboBox1.Text       = this.dataGridView1.CurrentRow.Cells[3].Value.ToString();
            a1.dateTimePicker1.Text = this.dataGridView1.CurrentRow.Cells[4].Value.ToString();
            a1.comboBox2.Text       = this.dataGridView1.CurrentRow.Cells[5].Value.ToString();
            a1.textBox3.Text        = this.dataGridView1.CurrentRow.Cells[6].Value.ToString();
            a1.comboBox3.Text       = this.dataGridView1.CurrentRow.Cells[7].Value.ToString();
            a1.textBox4.Text        = this.dataGridView1.CurrentRow.Cells[8].Value.ToString();
            a1.textBox5.Text        = this.dataGridView1.CurrentRow.Cells[9].Value.ToString();
            a1.textBox6.Text        = this.dataGridView1.CurrentRow.Cells[10].Value.ToString();
            a1.textBox7.Text        = this.dataGridView1.CurrentRow.Cells[11].Value.ToString();
            a1.textBox8.Text        = this.dataGridView1.CurrentRow.Cells[12].Value.ToString();
            a1.button2.Enabled      = false;
            a1.Show();
        }