예제 #1
0
파일: Renard.cs 프로젝트: ctmal956/vplus
 public void Initialize(IExecutable executableObject, SetupData setupData, XmlNode setupNode)
 {
     _setupData = setupData;
     _setupNode = setupNode;
     InitSerialPort();
     _holdPort = _setupData.GetBoolean(_setupNode, HoldNode, true);
 }
예제 #2
0
        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();
        }