Example #1
0
        public void Setup()
        {
            SetupDialog dialog = new SetupDialog(this.m_channelCount, this.m_deviceStarts);

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                this.m_deviceStarts = dialog.DeviceStartChannels;
                this.m_setupData.SetInteger(this.m_setupNode, "Device0", this.m_deviceStarts[0]);
                this.m_setupData.SetInteger(this.m_setupNode, "Device1", this.m_deviceStarts[1]);
                this.m_setupData.SetInteger(this.m_setupNode, "Device2", this.m_deviceStarts[2]);
                this.m_setupData.SetInteger(this.m_setupNode, "Device3", this.m_deviceStarts[3]);
            }
        }
Example #2
0
 public void Setup()
 {
     SetupDialog dialog = new SetupDialog(this.m_channelCount, this.m_deviceStarts);
     if (dialog.ShowDialog() == DialogResult.OK)
     {
         this.m_deviceStarts = dialog.DeviceStartChannels;
         this.m_setupData.SetInteger(this.m_setupNode, "Device0", this.m_deviceStarts[0]);
         this.m_setupData.SetInteger(this.m_setupNode, "Device1", this.m_deviceStarts[1]);
         this.m_setupData.SetInteger(this.m_setupNode, "Device2", this.m_deviceStarts[2]);
         this.m_setupData.SetInteger(this.m_setupNode, "Device3", this.m_deviceStarts[3]);
     }
 }