public void Initialize(IExecutable executableObject, SetupData setupData, XmlNode setupNode) { _setupData = setupData; _setupNode = setupNode; InitSerialPort(); _holdPort = _setupData.GetBoolean(_setupNode, HoldNode, true); }
private void UpdateFromSetupNode() { var width = 64; var height = 32; _cellSize = 8; checkBoxRedirectOutputs.Checked = _setupData.GetBoolean(_setupNode, "RedirectOutputs", false); SetDisplay(ref width, ref height, _setupNode.SelectSingleNode("Display")); SetPictureBoxSize(width * (_cellSize + 1), height * (_cellSize + 1)); UpdateSizeUi(); SetBackgroundImage(_setupNode.SelectSingleNode("BackgroundImage"), _setupNode.SelectSingleNode("Display")); SetChannels(_setupNode.SelectNodes("Channels/Channel")); pictureBoxSetupGrid.Refresh(); }