コード例 #1
0
        public void Setup()
        {
            SetupDialog dialog = new SetupDialog(this.m_channelCount, this.m_portBase, this.m_linesUsed);

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                this.m_portBase     = (ushort)dialog.PortAddress;
                this.m_channelCount = dialog.ChannelCount;
                this.m_linesUsed    = dialog.LinesUsed;
                this.m_setupData.SetInteger(this.m_setupNode, "Port", this.m_portBase);
                this.m_setupData.SetInteger(this.m_setupNode, "ChannelsPerController", this.m_channelCount);
                this.m_setupData.SetInteger(this.m_setupNode, "LinesUsed", this.m_linesUsed);
            }
        }
コード例 #2
0
ファイル: _8Line595.cs プロジェクト: jmcadams/vplus
 public void Setup()
 {
     SetupDialog dialog = new SetupDialog(this.m_channelCount, this.m_portBase, this.m_linesUsed);
     if (dialog.ShowDialog() == DialogResult.OK)
     {
         this.m_portBase = (ushort) dialog.PortAddress;
         this.m_channelCount = dialog.ChannelCount;
         this.m_linesUsed = dialog.LinesUsed;
         this.m_setupData.SetInteger(this.m_setupNode, "Port", this.m_portBase);
         this.m_setupData.SetInteger(this.m_setupNode, "ChannelsPerController", this.m_channelCount);
         this.m_setupData.SetInteger(this.m_setupNode, "LinesUsed", this.m_linesUsed);
     }
 }