Example #1
0
 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;
 }
Example #2
0
        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);
        }
Example #3
0
 private void helpDesk_FormClosing(object sender, FormClosingEventArgs e)
 {
     singleton = null;
 }
Example #4
0
 private void helpDesk_FormClosing(object sender, FormClosingEventArgs e)
 {
     singleton = null;
 }