private void ایجادکاربرجدیدToolStripMenuItem_Click(object sender, EventArgs e) { isForClosing = false; RegisterUserForm registerUserForm = new RegisterUserForm(); registerUserForm.Show(); this.Close(); }
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(); }