예제 #1
0
파일: HelpDesk.cs 프로젝트: pubudu538/WBMSP
 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;
 }
예제 #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);
        }
예제 #3
0
 private void helpDesk_FormClosing(object sender, FormClosingEventArgs e)
 {
     singleton = null;
 }
예제 #4
0
파일: HelpDesk.cs 프로젝트: pubudu538/WBMSP
 private void helpDesk_FormClosing(object sender, FormClosingEventArgs e)
 {
     singleton = null;
 }