コード例 #1
0
ファイル: MainWindowViewModel.cs プロジェクト: kbdnr/Audiot
        public MainWindowViewModel(IEventAggregator ea, IRegionManager region, IUnityContainer container)
        {
            _ea        = ea;
            _region    = region;
            _container = container;

            UpdateStatus("Welcome to Audiot");
            DeviceEnable  = true;
            DeviceDisable = false;

            LoadMidiModuleCommand    = new DelegateCommand(LoadMidiModule);
            DestroyMidiModuleCommand = new DelegateCommand(DestroyMidiModule);

            //MIDI IO
            MidiIDevices = DeviceLogic.AvailableMidiInDevices();
            MidiODevices = DeviceLogic.AvailableMidiOutDevices();

            //Audio IO
            AsioDevices = DeviceLogic.AvailableAudioDevices();

            StartDevicesCommand = new DelegateCommand(StartDevices);
            StopDevicesCommand  = new DelegateCommand(StopDevices);
        }