示例#1
0
        private void button1_Click(object sender, EventArgs e)
        {
            FRM_ADD_USERS frm = new FRM_ADD_USERS();

            frm.btnSave.Text = "حفظ المستخدم";
            frm.ShowDialog();
            dvgusers.DataSource = users.SEARCH_USERS("");
        }
示例#2
0
        private void button3_Click(object sender, EventArgs e)
        {
            FRM_ADD_USERS frm = new FRM_ADD_USERS();

            frm.txtID.Text         = dvgusers.CurrentRow.Cells[0].Value.ToString();
            frm.txtFullName.Text   = dvgusers.CurrentRow.Cells[1].Value.ToString();
            frm.txtPWD.Text        = dvgusers.CurrentRow.Cells[2].Value.ToString();
            frm.txtPWDConfirm.Text = dvgusers.CurrentRow.Cells[2].Value.ToString();
            frm.comType.Text       = dvgusers.CurrentRow.Cells[3].Value.ToString();
            frm.btnSave.Text       = "تعديل المستخدم";
            frm.ShowDialog();
            dvgusers.DataSource = users.SEARCH_USERS("");
        }
        private void اظافةمستخدامجديدToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FRM_ADD_USERS frm = new FRM_ADD_USERS();

            frm.ShowDialog();
        }