public DialogForm(ControlBoard controlBoard, SettingValues values, MemoryManager memoryManger) { m_ControlBoard = controlBoard; m_values = values; m_memoryManger = memoryManger; InitializeComponent(); SettingValuesToUI(); InitialDialog(); }
private void SettingInit() { m_settingValues = new SettingValues(); m_settingValues.value_conveyorSpeed = IniFileManager.GetSetting_ConveyerSpeed(); m_settingValues.value_XAxisDistance = IniFileManager.GetSetting_XXaisDistance(); m_settingValues.value_ConvererRollerSpeed = IniFileManager.GetSetting_ConverterRollerSpeed(); // set for machine //SendSettingValues(settingValues); }
private void SendSettingValues(SettingValues valueData) { m_ControlBoard.SendMessage(MessageGenerator.Meesage_Write(MessageProtocol.CMD_WRITE_BELTSPEED, (short)valueData.value_conveyorSpeed)); m_ControlBoard.SendMessage(MessageGenerator.Meesage_Write(MessageProtocol.CMD_WRITE_XXAISDISTANCE, (short)valueData.value_XAxisDistance)); m_ControlBoard.SendMessage(MessageGenerator.Meesage_Write(MessageProtocol.CMD_WRITE_ROLLERSPEED, (short)valueData.value_ConvererRollerSpeed)); }