Exemplo n.º 1
0
        private void اضافهمستخدمToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FRM_ADD_USER childForm = new FRM_ADD_USER();

            childForm.Text = "اضافه مستخدم";
            childForm.Show();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            FRM_ADD_USER frm = new FRM_ADD_USER();

            frm.btnsave.Text = "حفظ المستخدم";
            frm.ShowDialog();
        }
        private void button2_Click(object sender, EventArgs e)
        {
            FRM_ADD_USER frm = new FRM_ADD_USER();

            frm.TXTUSER.Text     = dgvusers.CurrentRow.Cells[0].Value.ToString();
            frm.TXTFULLNAME.Text = dgvusers.CurrentRow.Cells[1].Value.ToString();
            frm.TXTPASS.Text     = dgvusers.CurrentRow.Cells[2].Value.ToString();
            frm.TXTCONFIRM.Text  = dgvusers.CurrentRow.Cells[2].Value.ToString();
            frm.comboBox1.Text   = dgvusers.CurrentRow.Cells[3].Value.ToString();
            frm.btnsave.Text     = "تعديل المستخدم";
            frm.ShowDialog();
            this.dgvusers.DataSource = login.SEARCHUSER("");
        }
Exemplo n.º 4
0
        // Adding a new user
        private void registrationToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FRM_ADD_USER frm = new FRM_ADD_USER();

            frm.Show();
        }