public MoveSetting() { // This call is required by the Windows Form Designer. InitializeComponent(); // TODO: Add any initialization after the InitializeComponent call if (PubFunc.IsInDesignMode()) { return; } bool isVisible = (!PubFunc.IsFhzl3D() && !SPrinterProperty.IsSimpleUV() && (PubFunc.GetUserPermission() == (int)UserPermission.SupperUser)) || PubFunc.IsZhuoZhan(); button4Up.Visible = button4Down.Visible = label1.Visible = m_ComboBox4speed.Visible = isVisible; }
public void OnPrinterPropertyChange(SPrinterProperty sp) { if (PubFunc.IsFhzl3D() || PubFunc.IsZXHZ3D() || PubFunc.Is3DPrintMachine()) { this.m_NumericUpDown_3DZDownDis.Visible = true; this.m_NumericUpDown_ZAdjustment.Visible = false; } else// (PubFunc.IsKINCOLOR_FLAT_UV()) { this.m_NumericUpDown_3DZDownDis.Visible = false; this.m_NumericUpDown_ZAdjustment.Visible = true; m_NumericUpDown_ZAdjustment.Location = m_NumericUpDown_3DZDownDis.Location; } this.m_Label_3DSandDis.Visible = this.m_Label_3DFusionTime.Visible = this.m_Label_3DSandSpeed.Visible = this.m_NumericUpDown_3DSandDis.Visible = this.m_NumericUpDown_3DFusionTime.Visible = this.m_NumericUpDown_3DSandSpeed.Visible = false; this.cleanSetting3D1.OnPrinterPropertyChange(sp); }