Пример #1
0
 public static void CleanObj()
 {
     if (obj != null)
     {
         obj = null;
     }
 }
Пример #2
0
 public static SelectTime CreateInstance()
 {
     if (obj == null)
     {
         return(obj = new SelectTime());
     }
     else
     {
         return(obj);
     }
 }
Пример #3
0
 private void SelectTime_FormClosing(object sender, FormClosingEventArgs e)
 {
     obj = null;
 }