Exemple #1
0
        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);
        }