private bool Edit(Bitmap icon) { try { using (var frm = new Forms.BTSS.FormUsers()) { frm.Operation = Global.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 Forms.BTSS.FormUsers()) { frm.Operation = Global.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 Forms.BTSS.FormUsers()) { frm.Operation = Global.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; } }