private void btnAdd_Click(object sender, EventArgs e) { using (View.UserManageForms.UserRoleAddEdit f = new View.UserManageForms.UserRoleAddEdit()) { f.ShowDialog(); } }
private void btnEdit_Click(object sender, EventArgs e) { if (radGridView.SelectedRows.Count != 1) { return; } Model.Common.UserRoleReport userRoleReport = (radGridView.SelectedRows[0].DataBoundItem as Model.Common.UserRoleReport); if (userRoleReport.Locked) { PersianMessageBox.Show(this, "امکان ویرایش اطلاعات این گروه وجود ندارد"); return; } using (View.UserManageForms.UserRoleAddEdit f = new View.UserManageForms.UserRoleAddEdit(userRoleReport.Code)) { f.ShowDialog(); } }