public static HelpDesk Create(int authlevel, String acc) { int accNo; if (singleton == null) if (int.TryParse(acc, out accNo)) { singleton = new HelpDesk(authlevel, accNo); } else { singleton = new HelpDesk(authlevel,0); } return singleton; }
public static HelpDesk Create(int authlevel, String acc) { int accNo; if (singleton == null) { if (int.TryParse(acc, out accNo)) { singleton = new HelpDesk(authlevel, accNo); } else { singleton = new HelpDesk(authlevel, 0); } } return(singleton); }
private void helpDesk_FormClosing(object sender, FormClosingEventArgs e) { singleton = null; }