Example #1
0
        private void BTNADD_Click(object sender, EventArgs e)
        {
            FRM_ADD_USER FRM = new FRM_ADD_USER();

            FRM.BTNSAVE.Text = "حفظ";
            FRM.ShowDialog();
            this.DGUSERS.DataSource = USERS.SEARCHUSER("");
        }
        private void button1_Click(object sender, EventArgs e)
        {
            FRM_ADD_USER frm = new FRM_ADD_USER();

            frm.btnSave.Text = "حفظ المستخدم";
            frm.ShowDialog();
            this.dgvUsers.DataSource = login.SearchUsers("");
        }
Example #3
0
        private void BTNUPDATE_Click(object sender, EventArgs e)
        {
            FRM_ADD_USER FRM = new FRM_ADD_USER();

            FRM.txtusername.Text         = DGUSERS.CurrentRow.Cells[0].Value.ToString();
            FRM.txtpasswored.Text        = DGUSERS.CurrentRow.Cells[1].Value.ToString();
            FRM.txtpassworedconferm.Text = DGUSERS.CurrentRow.Cells[1].Value.ToString();
            FRM.combusertyp.Text         = DGUSERS.CurrentRow.Cells[3].Value.ToString();
            FRM.txtfulusername.Text      = DGUSERS.CurrentRow.Cells[2].Value.ToString();
            FRM.BTNSAVE.Text             = "تعديل";
            FRM.ShowDialog();
            this.DGUSERS.DataSource = USERS.SEARCHUSER("");
        }
        private void button3_Click(object sender, EventArgs e)
        {
            FRM_ADD_USER frm = new FRM_ADD_USER();

            frm.txtID.Text         = dgvUsers.CurrentRow.Cells[0].Value.ToString();
            frm.txtFullName.Text   = dgvUsers.CurrentRow.Cells[1].Value.ToString();
            frm.txtPWD.Text        = dgvUsers.CurrentRow.Cells[2].Value.ToString();
            frm.txtPWDConfirm.Text = dgvUsers.CurrentRow.Cells[2].Value.ToString();
            frm.cmbType.Text       = dgvUsers.CurrentRow.Cells[3].Value.ToString();
            frm.btnSave.Text       = "تعديل المستخدم";
            frm.ShowDialog();
            this.dgvUsers.DataSource = login.SearchUsers("");
        }
Example #5
0
        private void اضافةمستخدمجديدToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FRM_ADD_USER FRM = new FRM_ADD_USER();

            FRM.ShowDialog();
        }