Exemplo n.º 1
0
 public void OnPrinterPropertyChange(SPrinterProperty sp)
 {
     bZMeasurSensorSupport = sp.IsZMeasurSupport && !sp.IsALLWIN_FLAT();
     if (bZMeasurSensorSupport && !this.tabControl1.TabPages.Contains(this.tabPage2))
     {
         this.tabControl1.TabPages.Add(this.tabPage2);
     }
     else if (!bZMeasurSensorSupport && this.tabControl1.TabPages.Contains(this.tabPage2))
     {
         this.tabControl1.TabPages.Remove(this.tabPage2);
     }
     uvSetting1.OnPrinterPropertyChange(sp);
 }