private void button1_Click(object sender, EventArgs e)
        {
            Add_User add = new Add_User();

            add.btnSave.Text = "Add_New_User";
            add.ShowDialog();
            this.dgvUsers.DataSource = login.SearchUsers("");
        }
        private void button3_Click(object sender, EventArgs e)
        {
            Add_User add = new Add_User();

            add.txtID.Text         = dgvUsers.CurrentRow.Cells[0].Value.ToString();
            add.txtFullName.Text   = dgvUsers.CurrentRow.Cells[1].Value.ToString();
            add.txtPWD.Text        = dgvUsers.CurrentRow.Cells[2].Value.ToString();
            add.txtPWDConfirm.Text = dgvUsers.CurrentRow.Cells[2].Value.ToString();
            add.cmbType.Text       = dgvUsers.CurrentRow.Cells[3].Value.ToString();
            add.btnSave.Text       = "Update_User";
            add.ShowDialog();
            this.dgvUsers.DataSource = login.SearchUsers("");
        }
예제 #3
0
 private void إضافةمستخدمجديدToolStripMenuItem_Click(object sender, EventArgs e)
 {
     PL.Add_User add = new PL.Add_User();
     add.ShowDialog();
 }