示例#1
0
 private static bookSearch _instance = null; // 单例模式
 public static bookSearch CreateInstance()
 {
     if (_instance == null)
     {
         _instance = new bookSearch();
     }
     return(_instance);
 }
示例#2
0
        private void 书籍查询ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            bookSearch BookSearch = new bookSearch();

            BookSearch.ShowDialog();
            textBox1.Text = Common.Text;
            Common.Text   = "";
        }
示例#3
0
 private void bookSearch_FormClosing(object sender, FormClosingEventArgs e)
 {
     bkID      = -1;
     _instance = null;
     this.Dispose();
 }