Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        private void ZAixsSetting_Load(object sender, EventArgs e)
        {
            bool isSimpleUv = SPrinterProperty.IsSimpleUV();

            labelZspeed.Visible = numericUpDownZspeed.Visible = !isSimpleUv;
            if (IsMeasureBeforePrint)
            {
                m_ButtonMeasureThick.Visible      = m_ButtonManualMove.Visible =
                    m_ButtonMeasureThick2.Visible = buttonCancel.Visible = false;
                panelPrinting.Visible             = true;
                panelPrinting.Location            = m_ButtonMeasureThick.Location;
            }
            else
            {
                m_ButtonMeasureThick.Visible      = m_ButtonManualMove.Visible =
                    m_ButtonMeasureThick2.Visible = buttonCancel.Visible = true;
                panelPrinting.Visible             = false;
            }
            bLoaded = true;
        }