private void metroTile2_Click(object sender, EventArgs e) { add_user user = new add_user(); user.frmName = "edit"; user.Text = "تعديل المستخدم"; user.btnsave.Text = "تعديل"; user.id = int.Parse(this.dgvusers.CurrentRow.Cells[0].Value.ToString()); user.txtusernam.Text = this.dgvusers.CurrentRow.Cells[1].Value.ToString(); user.txtpass.Text = this.dgvusers.CurrentRow.Cells[2].Value.ToString(); user.txtconfirm.Text = this.dgvusers.CurrentRow.Cells[2].Value.ToString(); user.ComboBox1.SelectedValue = this.dgvusers.CurrentRow.Cells[3].Value.ToString(); user.ShowDialog(); user.Close(); this.dgvusers.DataSource = login.getAllUser(); }
private void إضافهمستخدمToolStripMenuItem_Click(object sender, EventArgs e) { add_user add_User = new add_user(); add_User.ShowDialog(); }