Beispiel #1
0
 private static bookSearch_reader _instance = null; // 单例模式
 public static bookSearch_reader CreateInstance()
 {
     if (_instance == null)
     {
         _instance = new bookSearch_reader();
     }
     return(_instance);
 }
Beispiel #2
0
 private void bookSearch_available_FormClosing(object sender, FormClosingEventArgs e)
 {
     bkID      = -1;
     _instance = null;
     this.Dispose();
 }