private void OptionSettingRuttin() { DialogForm dialog = new DialogForm(m_ControlBoard, m_settingValues, m_memoryManger); DialogResult dr = dialog.ShowDialog(); if (dr == DialogResult.OK) { //MessageBox.Show(settingData.value_conveyorSpeed + " " // + settingData.value_XAxisDistance // + settingData.value_ConvererRollerSpeed); // initFile에 저장 IniFileManager.SetSetting_ConveyerSpeed(m_settingValues.value_conveyorSpeed); IniFileManager.SetSetting_XXaisDistance(m_settingValues.value_XAxisDistance); IniFileManager.SetSetting_ConverterRollerSpeed(m_settingValues.value_ConvererRollerSpeed); // 저장메시지 전송 // SendSettingValues(settingData); } else if (dr == DialogResult.Cancel) { ; } m_ControlBoard.SendMessage(MessageGenerator.Meesage_Infom(MessageProtocol.CMD_INFORM_SETTING_CLOSE)); }
private void Form1_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)Keys.Return) { //MessageBox.Show("enter");// Enter key pressed if (m_inputBuffer == "") { return; } if (m_inputBuffer.Equals(m_insertedItem) == true) { // AddLog("(duplicated) " + m_insertedItem); ClearInputBuffer(); return; // Do not action, When Duplicated before Input value. (중복시 아무것도 하지 않음 } else { m_scanCount++; m_ControlBoard.SendMessage(MessageGenerator.Meesage_Infom(MessageProtocol.CMD_INFORM_SCANNED)); InsertBufferStrToLogFile(); } } else { AppendInputBuffer(e.KeyChar.ToString()); } }