Beispiel #1
0
        public DevicePropertyEditorImpl(DevicePropertyImpl devp) : this()
        {
            devp_ = devp as DevicePropertyImpl;

            InitializeInputDeviceList();
            InitializeOutputDeviceList();
            InitializeSamplingRate();
            InitializeBitsPerSample();
            InitializeChannelNum();
            InitializeOutputChannelNum();
            InitializeOutputVolume();

            ChkBox_InputEnable.Checked           = devp.InputEnable.Value;
            CBox_InputDeviceList.SelectedItem    = devp.InputDeviceId.Value;
            CBox_InputSamplingRate.SelectedItem  = (uint)devp.InputSamplingRate.Value;
            CBox_InputBitsPerSample.SelectedItem = (uint)devp.InputBitsPerSample.Value;
            CBox_InputChannelNum.SelectedItem    = devp.InputChannelNum.Value;

            ChkBox_OutputEnable.Checked           = devp.OutputEnable.Value;
            CBox_OutputDeviceList.SelectedItem    = devp.OutputDeviceId.Value;
            CBox_OutputSamplingRate.SelectedItem  = (uint)devp.OutputSamplingRate.Value;
            CBox_OutputBitsPerSample.SelectedItem = (uint)devp.OutputBitsPerSample.Value;
            CBox_OutputChannelNum.SelectedItem    = devp.OutputChannelNum.Value;
            CBox_OutputVolume.SelectedItem        = devp.OutputVolume.Value;
        }
Beispiel #2
0
 public DeviceInstanceImpl(DeviceConfig devconf, DeviceClass devd, DeviceProperty devp)
     : base(devconf, devd, devp)
 {
     devp_ = devp as DevicePropertyImpl;
 }