Ejemplo n.º 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);
            }
        }
Ejemplo n.º 2
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);
     }
 }