Exemplo n.º 1
0
        public void OnPrinterSettingChange(SPrinterSetting ss)
        {
            _ss = ss;
            GZClothMotionParam cc          = new GZClothMotionParam();
            DOUBLE_YAXIS       doubleYaxis = new DOUBLE_YAXIS();

            if (EpsonLCD.GetGZClothMotionParam(ref cc) && EpsonLCD.GetDoubleYAxis_Info(ref doubleYaxis))
            {
                rollingMotorCheckBox.Checked    = cc.enable != 0;
                comboBoxMotorMode.SelectedIndex = (cc.mode - 1);
                numericUpDownMotorSpeed.Value   = cc.speed;
                numericUpDownDoubeYRatio.Value  = (decimal)doubleYaxis.DoubeYRatio;
            }
        }
Exemplo n.º 2
0
        private void buttonMotorGet_Click(object sender, EventArgs e)
        {
            GZClothMotionParam cc          = new GZClothMotionParam();
            DOUBLE_YAXIS       doubleYaxis = new DOUBLE_YAXIS();

            if (EpsonLCD.GetGZClothMotionParam(ref cc) && EpsonLCD.GetDoubleYAxis_Info(ref doubleYaxis))
            {
                rollingMotorCheckBox.Checked    = cc.enable != 0;
                comboBoxMotorMode.SelectedIndex = (cc.mode - 1);
                numericUpDownMotorSpeed.Value   = cc.speed;
                numericUpDownDoubeYRatio.Value  = (decimal)doubleYaxis.DoubeYRatio;
            }
            else
            {
                MessageBox.Show("读取失败.");
            }
        }