C# Класс SoundSwitch.Model.AppModel

Наследование: IAppModel
Показать файл Открыть проект

Открытые методы

Метод Описание
CycleActiveDevice ( AudioDeviceType type ) : bool

Cycles the active device to the next device. Returns true if succesfully switched (at least as far as we can tell), returns false if could not successfully switch. Throws NoDevicesException if there are no devices configured.

InitializeMain ( ) : void

Initialize the Main class with Updater and Hotkeys

SelectDevice ( IAudioDevice device ) : bool

Add the device to the Selected device list

SetActiveDevice ( IAudioDevice device ) : bool

Attempts to set active device to the specified name

SetHotkeyCombination ( HotKeys hotkeys, AudioDeviceType deviceType ) : bool
UnselectDevice ( IAudioDevice device ) : bool

Add the device to the Selected device list

Приватные методы

Метод Описание
AppModel ( ) : System
HandleHotkeyPress ( object sender, WindowsAPIAdapter e ) : void
InitUpdateChecker ( ) : void
MigrateSelectedDeviceLists ( ) : void
RegisterForRestart ( ) : void
RegisterRecovery ( ) : void
SaveState ( object state ) : int

Описание методов

CycleActiveDevice() публичный Метод

Cycles the active device to the next device. Returns true if succesfully switched (at least as far as we can tell), returns false if could not successfully switch. Throws NoDevicesException if there are no devices configured.
public CycleActiveDevice ( AudioDeviceType type ) : bool
type AudioDeviceType
Результат bool

InitializeMain() публичный Метод

Initialize the Main class with Updater and Hotkeys
public InitializeMain ( ) : void
Результат void

SelectDevice() публичный Метод

Add the device to the Selected device list
public SelectDevice ( IAudioDevice device ) : bool
device IAudioDevice
Результат bool

SetActiveDevice() публичный Метод

Attempts to set active device to the specified name
public SetActiveDevice ( IAudioDevice device ) : bool
device IAudioDevice
Результат bool

SetHotkeyCombination() публичный Метод

public SetHotkeyCombination ( HotKeys hotkeys, AudioDeviceType deviceType ) : bool
hotkeys HotKeys
deviceType AudioDeviceType
Результат bool

UnselectDevice() публичный Метод

Add the device to the Selected device list
public UnselectDevice ( IAudioDevice device ) : bool
device IAudioDevice
Результат bool