コード例 #1
0
        private void buttonOk_Click(object sender, EventArgs e)
        {
            PrintHeadOrder order = new PrintHeadOrder(null);

            GetSetting(ref order);
            EpsonLCD.SetPrintHeadOrder(order);
        }
コード例 #2
0
        public void GetSetting(ref PrintHeadOrder headOrder)
        {
            int offset = 0;

            for (int i = 0; i < headBoardPorts.Count; i++)
            {
                byte[] buf = headBoardPorts[i].GetSetting();
                Buffer.BlockCopy(buf, 0, headOrder.Order, offset, buf.Length);
                offset += buf.Length;
            }
        }
コード例 #3
0
        private void PrintHeadOrderTypeForm_Load(object sender, EventArgs e)
        {
            PrintHeadOrder headOrder = new PrintHeadOrder();

            if (EpsonLCD.GetPrintHeadOrder(ref headOrder))
            {
                for (int i = 0; i < headBoardPorts.Count; i++)
                {
                    headBoardPorts[i].OnSettingChanged(headOrder.Order, i);
                }
            }
        }