Пример #1
0
 private static readerSearch _instance = null; // 单例模式
 public static readerSearch CreateInstance()
 {
     if (_instance == null)
     {
         _instance = new readerSearch();
     }
     return(_instance);
 }
Пример #2
0
 private void readerSearch_available_FormClosing(object sender, FormClosingEventArgs e)
 {
     rdID      = -1;
     _instance = null;
     this.Dispose();
 }