Ejemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            NKTParam nktParam = new NKTParam();

            nktParam.Flag      = new char[] { 'N', 'K', 'T', '\0' };
            nktParam.BeltSpeed = (uint)numBeltSpeed.Value;
            nktParam.FeedSpeed = (uint)numFeedSpeed.Value;
            nktParam.StepSpeed = (uint)numStepSpeed.Value;
            float offset =
                (UIPreference.ToInchLength(m_CurrentUnit, (float)numDetectorOffset.Value) *
                 m_SPrinterProperty.fPulsePerInchY);

            nktParam.DetectorOffset = (uint)offset;
            if (!EpsonLCD.SetNktParam(nktParam))
            {
                MessageBox.Show("设置参数失败.");
            }
        }