private bool Edit(Bitmap icon) { try { using (var frm = new BTSS.Presentation.FormGroup()) { frm.Operation = Common.Core.Operation.UPDATE; frm.Icon = Icon.FromHandle(icon.GetHicon()); frm.Text = "Group[EDIT]"; frm.GroupId = id; if (frm.ShowDialog() == DialogResult.OK) RefreshListing(); } return true; } catch (Exception) { throw; } }
private bool View(Bitmap icon) { try { using (var frm = new BTSS.Presentation.FormGroup()) { frm.Operation = Common.Core.Operation.VIEW; frm.Icon = Icon.FromHandle(icon.GetHicon()); frm.Text = "Group[VIEW]"; frm.GroupId = id; frm.ShowDialog(); } return true; } catch (Exception) { throw; } }
private bool New(Bitmap icon) { try { using (var frm = new BTSS.Presentation.FormGroup()) { frm.Operation = Common.Core.Operation.INSERT; frm.Icon = Icon.FromHandle(icon.GetHicon()); frm.Text = "Group[NEW]"; frm.OnSave += new EventHandler(RefreshOnSave); if (frm.ShowDialog() == DialogResult.OK) RefreshListing(); } group.Operation = Common.Core.Operation.INSERT; return true; } catch (Exception) { throw; } }