private void buttonOk_Click(object sender, EventArgs e) { PrintHeadOrder order = new PrintHeadOrder(null); GetSetting(ref order); EpsonLCD.SetPrintHeadOrder(order); }
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; } }
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); } } }