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