private void bbiAddDepartment_ItemClick(object sender, ItemClickEventArgs e) { var insertOrUpdate = new FormInsertOrUpdateDepartment(null); insertOrUpdate.ShowDialog(); LoadData(); }
private void gridLookUpEditDepartment_ButtonPressed(object sender, ButtonPressedEventArgs e) { if (e.Button.Index == 1) { var department = new FormInsertOrUpdateDepartment(null); department.ShowDialog(); LoadDepartmentForGridLookUp(); } }
private void bbiEditDepartment_ItemClick(object sender, ItemClickEventArgs e) { if (string.IsNullOrEmpty(_departmentId)) { MessageBoxHelper.ShowMessageBoxEditWaringNotSelectId(this.Text); } else { var insertOrUpdate = new FormInsertOrUpdateDepartment(_departmentId); insertOrUpdate.ShowDialog(); LoadData(); } }
private void gridView1_DoubleClick(object sender, EventArgs e) { if (string.IsNullOrEmpty(_departmentId)) { MessageBoxHelper.ShowMessageBoxEditWaringNotSelectId(this.Text); } else { var insertOrUpdate = new FormInsertOrUpdateDepartment(_departmentId); insertOrUpdate.ShowDialog(); LoadData(); } }