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