예제 #1
0
        private void ایجادکاربرجدیدToolStripMenuItem_Click(object sender, EventArgs e)
        {
            isForClosing = false;
            RegisterUserForm registerUserForm = new RegisterUserForm();

            registerUserForm.Show();
            this.Close();
        }
예제 #2
0
        private void btnLogin_Click(object sender, DataGridViewCellMouseEventArgs e)
        {
            var              row = grdUsers.Rows[e.RowIndex];
            Int32            ID  = Int32.Parse(row.Cells["ID"].Value.ToString());
            RegisterUserForm registerUserForm = new RegisterUserForm(true, ID);

            registerUserForm.ShowDialog(this);
            searchGrid();
        }