Пример #1
0
 //创建窗体对象的静态方法
 public static frmMeasuerLog InstanceObject()
 {
     if (uniqueInstance == null)
     {
         lock (padlock)
         {
             if (uniqueInstance == null)
             {
                 uniqueInstance = new frmMeasuerLog();
             }
         }
     }
     return(uniqueInstance);
 }
Пример #2
0
 private void frmMeasuerLog_FormClosing(object sender, FormClosingEventArgs e)
 {
     uniqueInstance = null;
     AnimateWindow(this.Handle, 500, AW_BLEND | AW_HIDE);
 }