C# 클래스 SoundSwitch.Model.AppModel

상속: IAppModel
파일 보기 프로젝트 열기: Belphemur/SoundSwitch

공개 메소드들

메소드 설명
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