diff --git a/.editorconfig b/.editorconfig index cc7407f..944fc48 100644 --- a/.editorconfig +++ b/.editorconfig @@ -200,6 +200,10 @@ csharp_preserve_single_line_blocks = true # Code block csharp_prefer_braces = false:none +# Microsoft.CodeAnalysis.VisualBasic.CodeStyle/Microsoft.CodeAnalysis.CSharp.CodeStyle +dotnet_diagnostic.IDE0073.severity = error # Enforce file header +file_header_template = -----------------------------------------------------------------------\nCopyright (c) David Kean. All rights reserved.\n----------------------------------------------------------------------- + [src/*Tests/**/*.cs] # We allow usage of "var" inside tests as it reduces churn as we remove/rename types csharp_style_var_for_built_in_types = true:none diff --git a/src/AudioSwitcher/ApplicationModel/AudioSwitcherApp.cs b/src/AudioSwitcher/ApplicationModel/AudioSwitcherApp.cs index dc25077..1a2f98a 100644 --- a/src/AudioSwitcher/ApplicationModel/AudioSwitcherApp.cs +++ b/src/AudioSwitcher/ApplicationModel/AudioSwitcherApp.cs @@ -1,6 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; using System.Collections.Generic; using System.ComponentModel.Composition; diff --git a/src/AudioSwitcher/ApplicationModel/IApplication.cs b/src/AudioSwitcher/ApplicationModel/IApplication.cs index b3de485..fd352c8 100644 --- a/src/AudioSwitcher/ApplicationModel/IApplication.cs +++ b/src/AudioSwitcher/ApplicationModel/IApplication.cs @@ -1,6 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; using System.Drawing; diff --git a/src/AudioSwitcher/ApplicationModel/IStartupService.cs b/src/AudioSwitcher/ApplicationModel/IStartupService.cs index dce8efc..c1eef35 100644 --- a/src/AudioSwitcher/ApplicationModel/IStartupService.cs +++ b/src/AudioSwitcher/ApplicationModel/IStartupService.cs @@ -1,7 +1,6 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; namespace AudioSwitcher.ApplicationModel { diff --git a/src/AudioSwitcher/ApplicationModel/NotificationIconStartupService.cs b/src/AudioSwitcher/ApplicationModel/NotificationIconStartupService.cs index db208f3..5b0d7c4 100644 --- a/src/AudioSwitcher/ApplicationModel/NotificationIconStartupService.cs +++ b/src/AudioSwitcher/ApplicationModel/NotificationIconStartupService.cs @@ -1,6 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System.ComponentModel.Composition; using AudioSwitcher.Presentation; using AudioSwitcher.UI.Presenters; diff --git a/src/AudioSwitcher/ApplicationModel/SaveSettingsService.cs b/src/AudioSwitcher/ApplicationModel/SaveSettingsService.cs index d2796aa..588006f 100644 --- a/src/AudioSwitcher/ApplicationModel/SaveSettingsService.cs +++ b/src/AudioSwitcher/ApplicationModel/SaveSettingsService.cs @@ -1,6 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; using System.ComponentModel; using System.ComponentModel.Composition; diff --git a/src/AudioSwitcher/Audio/AudioDevice.cs b/src/AudioSwitcher/Audio/AudioDevice.cs index d60bfdc..10c7cba 100644 --- a/src/AudioSwitcher/Audio/AudioDevice.cs +++ b/src/AudioSwitcher/Audio/AudioDevice.cs @@ -1,4 +1,8 @@ -/* +// ----------------------------------------------------------------------- +// Copyright (c) David Kean. All rights reserved. +// ----------------------------------------------------------------------- + +/* LICENSE ------- Copyright (C) 2007 Ray Molenkamp diff --git a/src/AudioSwitcher/Audio/AudioDeviceCollection.cs b/src/AudioSwitcher/Audio/AudioDeviceCollection.cs index 0ddfd9d..1548b43 100644 --- a/src/AudioSwitcher/Audio/AudioDeviceCollection.cs +++ b/src/AudioSwitcher/Audio/AudioDeviceCollection.cs @@ -1,4 +1,8 @@ -using System.Collections; +// ----------------------------------------------------------------------- +// Copyright (c) David Kean. All rights reserved. +// ----------------------------------------------------------------------- + +using System.Collections; /* LICENSE ------- diff --git a/src/AudioSwitcher/Audio/AudioDeviceEventArgs.cs b/src/AudioSwitcher/Audio/AudioDeviceEventArgs.cs index defde9e..b34c407 100644 --- a/src/AudioSwitcher/Audio/AudioDeviceEventArgs.cs +++ b/src/AudioSwitcher/Audio/AudioDeviceEventArgs.cs @@ -1,6 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; namespace AudioSwitcher.Audio diff --git a/src/AudioSwitcher/Audio/AudioDeviceKind.cs b/src/AudioSwitcher/Audio/AudioDeviceKind.cs index 1f0ad24..3d9262b 100644 --- a/src/AudioSwitcher/Audio/AudioDeviceKind.cs +++ b/src/AudioSwitcher/Audio/AudioDeviceKind.cs @@ -1,4 +1,6 @@ -using System; +// ----------------------------------------------------------------------- +// Copyright (c) David Kean. All rights reserved. +// ----------------------------------------------------------------------- namespace AudioSwitcher.Audio { diff --git a/src/AudioSwitcher/Audio/AudioDeviceManager.cs b/src/AudioSwitcher/Audio/AudioDeviceManager.cs index 1164021..d49235d 100644 --- a/src/AudioSwitcher/Audio/AudioDeviceManager.cs +++ b/src/AudioSwitcher/Audio/AudioDeviceManager.cs @@ -1,6 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + // This source file was altered for use in AudioSwitcher. /* LICENSE diff --git a/src/AudioSwitcher/Audio/AudioDeviceRemovedEventArgs.cs b/src/AudioSwitcher/Audio/AudioDeviceRemovedEventArgs.cs index 12ff689..a7d8f40 100644 --- a/src/AudioSwitcher/Audio/AudioDeviceRemovedEventArgs.cs +++ b/src/AudioSwitcher/Audio/AudioDeviceRemovedEventArgs.cs @@ -1,8 +1,8 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; -using AudioSwitcher.Audio; namespace AudioSwitcher.Audio { diff --git a/src/AudioSwitcher/Audio/AudioDeviceRole.cs b/src/AudioSwitcher/Audio/AudioDeviceRole.cs index 5f04c20..2976741 100644 --- a/src/AudioSwitcher/Audio/AudioDeviceRole.cs +++ b/src/AudioSwitcher/Audio/AudioDeviceRole.cs @@ -1,6 +1,6 @@ -using System; -using System.Collections.Generic; -using System.Text; +// ----------------------------------------------------------------------- +// Copyright (c) David Kean. All rights reserved. +// ----------------------------------------------------------------------- namespace AudioSwitcher.Audio { diff --git a/src/AudioSwitcher/Audio/AudioDeviceState.cs b/src/AudioSwitcher/Audio/AudioDeviceState.cs index 4764682..2698208 100644 --- a/src/AudioSwitcher/Audio/AudioDeviceState.cs +++ b/src/AudioSwitcher/Audio/AudioDeviceState.cs @@ -1,4 +1,8 @@ -/* +// ----------------------------------------------------------------------- +// Copyright (c) David Kean. All rights reserved. +// ----------------------------------------------------------------------- + +/* LICENSE ------- Copyright (C) 2007 Ray Molenkamp diff --git a/src/AudioSwitcher/Audio/AudioDeviceStateEventArgs.cs b/src/AudioSwitcher/Audio/AudioDeviceStateEventArgs.cs index 40eec33..36b7dae 100644 --- a/src/AudioSwitcher/Audio/AudioDeviceStateEventArgs.cs +++ b/src/AudioSwitcher/Audio/AudioDeviceStateEventArgs.cs @@ -1,7 +1,6 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; namespace AudioSwitcher.Audio { diff --git a/src/AudioSwitcher/Audio/DefaultAudioDeviceEventArgs.cs b/src/AudioSwitcher/Audio/DefaultAudioDeviceEventArgs.cs index f1bf719..0a778ee 100644 --- a/src/AudioSwitcher/Audio/DefaultAudioDeviceEventArgs.cs +++ b/src/AudioSwitcher/Audio/DefaultAudioDeviceEventArgs.cs @@ -1,7 +1,6 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; namespace AudioSwitcher.Audio { diff --git a/src/AudioSwitcher/Audio/InputSwitcherService.cs b/src/AudioSwitcher/Audio/InputSwitcherService.cs index 4857559..ed13ed5 100644 --- a/src/AudioSwitcher/Audio/InputSwitcherService.cs +++ b/src/AudioSwitcher/Audio/InputSwitcherService.cs @@ -1,10 +1,11 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; using System.ComponentModel.Composition; + using AudioSwitcher.ApplicationModel; -using AudioSwitcher.Audio; namespace AudioSwitcher.Audio { diff --git a/src/AudioSwitcher/Audio/Interop/MMAudio/Blob.cs b/src/AudioSwitcher/Audio/Interop/MMAudio/Blob.cs index a524f81..fbe4abc 100644 --- a/src/AudioSwitcher/Audio/Interop/MMAudio/Blob.cs +++ b/src/AudioSwitcher/Audio/Interop/MMAudio/Blob.cs @@ -1,4 +1,8 @@ -/* +// ----------------------------------------------------------------------- +// Copyright (c) David Kean. All rights reserved. +// ----------------------------------------------------------------------- + +/* LICENSE ------- Copyright (C) 2007 Ray Molenkamp @@ -21,9 +25,6 @@ 3. This notice may not be removed or altered from any source distribution. */ // Adapted for AudioSwitcher using System; -using System.Collections.Generic; -using System.Text; -using System.Runtime.InteropServices; namespace AudioSwitcher.Audio.Interop { diff --git a/src/AudioSwitcher/Audio/Interop/MMAudio/ClsCtx.cs b/src/AudioSwitcher/Audio/Interop/MMAudio/ClsCtx.cs index 2ec2bc6..24bc8f5 100644 --- a/src/AudioSwitcher/Audio/Interop/MMAudio/ClsCtx.cs +++ b/src/AudioSwitcher/Audio/Interop/MMAudio/ClsCtx.cs @@ -1,6 +1,8 @@ -using System; -using System.Collections.Generic; -using System.Text; +// ----------------------------------------------------------------------- +// Copyright (c) David Kean. All rights reserved. +// ----------------------------------------------------------------------- + +using System; namespace AudioSwitcher.Audio.Interop { diff --git a/src/AudioSwitcher/Audio/Interop/MMAudio/IMMDevice.cs b/src/AudioSwitcher/Audio/Interop/MMAudio/IMMDevice.cs index dab0764..f78cb2f 100644 --- a/src/AudioSwitcher/Audio/Interop/MMAudio/IMMDevice.cs +++ b/src/AudioSwitcher/Audio/Interop/MMAudio/IMMDevice.cs @@ -1,9 +1,9 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; using System.Runtime.InteropServices; -using AudioSwitcher.Audio; namespace AudioSwitcher.Audio.Interop { diff --git a/src/AudioSwitcher/Audio/Interop/MMAudio/IMMDeviceCollection.cs b/src/AudioSwitcher/Audio/Interop/MMAudio/IMMDeviceCollection.cs index 6a4cc2a..7585858 100644 --- a/src/AudioSwitcher/Audio/Interop/MMAudio/IMMDeviceCollection.cs +++ b/src/AudioSwitcher/Audio/Interop/MMAudio/IMMDeviceCollection.cs @@ -1,6 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; using System.Runtime.InteropServices; diff --git a/src/AudioSwitcher/Audio/Interop/MMAudio/IMMDeviceEnumerator.cs b/src/AudioSwitcher/Audio/Interop/MMAudio/IMMDeviceEnumerator.cs index de3ce30..6bf3220 100644 --- a/src/AudioSwitcher/Audio/Interop/MMAudio/IMMDeviceEnumerator.cs +++ b/src/AudioSwitcher/Audio/Interop/MMAudio/IMMDeviceEnumerator.cs @@ -1,9 +1,9 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; using System.Runtime.InteropServices; -using AudioSwitcher.Audio; namespace AudioSwitcher.Audio.Interop { diff --git a/src/AudioSwitcher/Audio/Interop/MMAudio/IMMEndpoint.cs b/src/AudioSwitcher/Audio/Interop/MMAudio/IMMEndpoint.cs index 9500892..f29b4fe 100644 --- a/src/AudioSwitcher/Audio/Interop/MMAudio/IMMEndpoint.cs +++ b/src/AudioSwitcher/Audio/Interop/MMAudio/IMMEndpoint.cs @@ -1,8 +1,9 @@ -using System; -using System.Collections.Generic; -using System.Text; +// ----------------------------------------------------------------------- +// Copyright (c) David Kean. All rights reserved. +// ----------------------------------------------------------------------- + +using System; using System.Runtime.InteropServices; -using AudioSwitcher.Audio; namespace AudioSwitcher.Audio.Interop { diff --git a/src/AudioSwitcher/Audio/Interop/MMAudio/IMMNotificationClient.cs b/src/AudioSwitcher/Audio/Interop/MMAudio/IMMNotificationClient.cs index b8f94fb..1022c54 100644 --- a/src/AudioSwitcher/Audio/Interop/MMAudio/IMMNotificationClient.cs +++ b/src/AudioSwitcher/Audio/Interop/MMAudio/IMMNotificationClient.cs @@ -1,8 +1,9 @@ -using System; -using System.Collections.Generic; -using System.Text; +// ----------------------------------------------------------------------- +// Copyright (c) David Kean. All rights reserved. +// ----------------------------------------------------------------------- + +using System; using System.Runtime.InteropServices; -using AudioSwitcher.Audio; namespace AudioSwitcher.Audio.Interop { diff --git a/src/AudioSwitcher/Audio/Interop/MMAudio/IPolicyConfig2.cs b/src/AudioSwitcher/Audio/Interop/MMAudio/IPolicyConfig2.cs index d69cfef..8fa5ef4 100644 --- a/src/AudioSwitcher/Audio/Interop/MMAudio/IPolicyConfig2.cs +++ b/src/AudioSwitcher/Audio/Interop/MMAudio/IPolicyConfig2.cs @@ -1,8 +1,8 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System.Runtime.InteropServices; -using AudioSwitcher.Audio; namespace AudioSwitcher.Audio.Interop { diff --git a/src/AudioSwitcher/Audio/Interop/MMAudio/IPolicyConfig3.cs b/src/AudioSwitcher/Audio/Interop/MMAudio/IPolicyConfig3.cs index d2bcef8..235de97 100644 --- a/src/AudioSwitcher/Audio/Interop/MMAudio/IPolicyConfig3.cs +++ b/src/AudioSwitcher/Audio/Interop/MMAudio/IPolicyConfig3.cs @@ -1,8 +1,8 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System.Runtime.InteropServices; -using AudioSwitcher.Audio; namespace AudioSwitcher.Audio.Interop { diff --git a/src/AudioSwitcher/Audio/Interop/MMAudio/IPropertyStore.cs b/src/AudioSwitcher/Audio/Interop/MMAudio/IPropertyStore.cs index d54f124..b11848f 100644 --- a/src/AudioSwitcher/Audio/Interop/MMAudio/IPropertyStore.cs +++ b/src/AudioSwitcher/Audio/Interop/MMAudio/IPropertyStore.cs @@ -1,9 +1,9 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; using System.Runtime.InteropServices; -using AudioSwitcher.Audio; namespace AudioSwitcher.Audio.Interop { diff --git a/src/AudioSwitcher/Audio/Interop/MMAudio/MMDeviceEnumerator.cs b/src/AudioSwitcher/Audio/Interop/MMAudio/MMDeviceEnumerator.cs index 307144a..ecb9cd6 100644 --- a/src/AudioSwitcher/Audio/Interop/MMAudio/MMDeviceEnumerator.cs +++ b/src/AudioSwitcher/Audio/Interop/MMAudio/MMDeviceEnumerator.cs @@ -1,6 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; using System.Runtime.InteropServices; diff --git a/src/AudioSwitcher/Audio/Interop/MMAudio/PolicyConfig.cs b/src/AudioSwitcher/Audio/Interop/MMAudio/PolicyConfig.cs index 8a96bb2..50327bb 100644 --- a/src/AudioSwitcher/Audio/Interop/MMAudio/PolicyConfig.cs +++ b/src/AudioSwitcher/Audio/Interop/MMAudio/PolicyConfig.cs @@ -1,6 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; using System.Runtime.InteropServices; diff --git a/src/AudioSwitcher/Audio/Interop/MMAudio/PropVariant.cs b/src/AudioSwitcher/Audio/Interop/MMAudio/PropVariant.cs index 0098475..b2fe5dc 100644 --- a/src/AudioSwitcher/Audio/Interop/MMAudio/PropVariant.cs +++ b/src/AudioSwitcher/Audio/Interop/MMAudio/PropVariant.cs @@ -1,4 +1,8 @@ -/* +// ----------------------------------------------------------------------- +// Copyright (c) David Kean. All rights reserved. +// ----------------------------------------------------------------------- + +/* LICENSE ------- Copyright (C) 2007 Ray Molenkamp @@ -21,9 +25,7 @@ 3. This notice may not be removed or altered from any source distribution. */ // adapted for use in AudioSwitcher using System; -using System.Collections.Generic; using System.IO; -using System.Text; using System.Runtime.InteropServices; namespace AudioSwitcher.Audio.Interop diff --git a/src/AudioSwitcher/Audio/Interop/MMAudio/PropertyKey.cs b/src/AudioSwitcher/Audio/Interop/MMAudio/PropertyKey.cs index f917cb3..d892784 100644 --- a/src/AudioSwitcher/Audio/Interop/MMAudio/PropertyKey.cs +++ b/src/AudioSwitcher/Audio/Interop/MMAudio/PropertyKey.cs @@ -1,6 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; namespace AudioSwitcher.Audio diff --git a/src/AudioSwitcher/Audio/Interop/MMAudio/PropertyKeys.cs b/src/AudioSwitcher/Audio/Interop/MMAudio/PropertyKeys.cs index bea902d..f4ac041 100644 --- a/src/AudioSwitcher/Audio/Interop/MMAudio/PropertyKeys.cs +++ b/src/AudioSwitcher/Audio/Interop/MMAudio/PropertyKeys.cs @@ -1,6 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + /* LICENSE ------- @@ -23,8 +24,6 @@ misrepresented as being the original source code. 3. This notice may not be removed or altered from any source distribution. */ using System; -using System.Collections.Generic; -using System.Text; namespace AudioSwitcher.Audio { diff --git a/src/AudioSwitcher/Audio/Interop/MMAudio/PropertyStore.cs b/src/AudioSwitcher/Audio/Interop/MMAudio/PropertyStore.cs index 7baa866..95b4761 100644 --- a/src/AudioSwitcher/Audio/Interop/MMAudio/PropertyStore.cs +++ b/src/AudioSwitcher/Audio/Interop/MMAudio/PropertyStore.cs @@ -1,7 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -// This source file was altered for use in AudioSwitcher. + /* LICENSE ------- @@ -23,10 +23,8 @@ appreciated but is not required. misrepresented as being the original source code. 3. This notice may not be removed or altered from any source distribution. */ -using System; -using System.Collections.Generic; -using System.Text; using System.Runtime.InteropServices; + using AudioSwitcher.Audio.Interop; namespace AudioSwitcher.Audio diff --git a/src/AudioSwitcher/Audio/Interop/MMAudio/PropertyStoreProperty.cs b/src/AudioSwitcher/Audio/Interop/MMAudio/PropertyStoreProperty.cs index ece2f55..bc0e707 100644 --- a/src/AudioSwitcher/Audio/Interop/MMAudio/PropertyStoreProperty.cs +++ b/src/AudioSwitcher/Audio/Interop/MMAudio/PropertyStoreProperty.cs @@ -1,4 +1,8 @@ -/* +// ----------------------------------------------------------------------- +// Copyright (c) David Kean. All rights reserved. +// ----------------------------------------------------------------------- + +/* LICENSE ------- Copyright (C) 2007 Ray Molenkamp @@ -22,9 +26,6 @@ 3. This notice may not be removed or altered from any source distribution. // modified from Ray Molenkamp's original -using System; -using System.Collections.Generic; -using System.Text; using AudioSwitcher.Audio.Interop; namespace AudioSwitcher.Audio diff --git a/src/AudioSwitcher/Audio/Interop/MMAudio/StorageAccessMode.cs b/src/AudioSwitcher/Audio/Interop/MMAudio/StorageAccessMode.cs index dc72d00..c0d3296 100644 --- a/src/AudioSwitcher/Audio/Interop/MMAudio/StorageAccessMode.cs +++ b/src/AudioSwitcher/Audio/Interop/MMAudio/StorageAccessMode.cs @@ -1,9 +1,6 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; -using System.Collections.Generic; -using System.Text; namespace AudioSwitcher.Audio.Interop { diff --git a/src/AudioSwitcher/ComponentModel/ILifetime`2.cs b/src/AudioSwitcher/ComponentModel/ILifetime`2.cs index 27e4e93..3ef4385 100644 --- a/src/AudioSwitcher/ComponentModel/ILifetime`2.cs +++ b/src/AudioSwitcher/ComponentModel/ILifetime`2.cs @@ -1,7 +1,6 @@ // ----------------------------------------------------------------------- // Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; namespace AudioSwitcher.ComponentModel { diff --git a/src/AudioSwitcher/ComponentModel/IPriorityMetadata.cs b/src/AudioSwitcher/ComponentModel/IPriorityMetadata.cs index 0cc4267..ec2ac7d 100644 --- a/src/AudioSwitcher/ComponentModel/IPriorityMetadata.cs +++ b/src/AudioSwitcher/ComponentModel/IPriorityMetadata.cs @@ -1,7 +1,6 @@ // ----------------------------------------------------------------------- // Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; using System.ComponentModel; namespace AudioSwitcher.ComponentModel diff --git a/src/AudioSwitcher/ComponentModel/ObservableObject.cs b/src/AudioSwitcher/ComponentModel/ObservableObject.cs index 52789c9..cc87611 100644 --- a/src/AudioSwitcher/ComponentModel/ObservableObject.cs +++ b/src/AudioSwitcher/ComponentModel/ObservableObject.cs @@ -1,7 +1,6 @@ // ----------------------------------------------------------------------- // Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; using System.ComponentModel; using System.Runtime.CompilerServices; diff --git a/src/AudioSwitcher/Interop/ExternalDll.cs b/src/AudioSwitcher/Interop/ExternalDll.cs index 20343d0..28ad138 100644 --- a/src/AudioSwitcher/Interop/ExternalDll.cs +++ b/src/AudioSwitcher/Interop/ExternalDll.cs @@ -1,7 +1,6 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; namespace AudioSwitcher.Interop { diff --git a/src/AudioSwitcher/Interop/HResult.cs b/src/AudioSwitcher/Interop/HResult.cs index 556d5e9..f4ba643 100644 --- a/src/AudioSwitcher/Interop/HResult.cs +++ b/src/AudioSwitcher/Interop/HResult.cs @@ -1,8 +1,6 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; -using AudioSwitcher.Win32.InteropServices; namespace AudioSwitcher.Interop { diff --git a/src/AudioSwitcher/Presentation/CommandModel/Command.cs b/src/AudioSwitcher/Presentation/CommandModel/Command.cs index 8ed9d00..0b28d6d 100644 --- a/src/AudioSwitcher/Presentation/CommandModel/Command.cs +++ b/src/AudioSwitcher/Presentation/CommandModel/Command.cs @@ -1,10 +1,10 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; -using System.ComponentModel; using System.Drawing; -using System.Runtime.CompilerServices; + using AudioSwitcher.ComponentModel; namespace AudioSwitcher.Presentation.CommandModel diff --git a/src/AudioSwitcher/Presentation/CommandModel/CommandAttribute.cs b/src/AudioSwitcher/Presentation/CommandModel/CommandAttribute.cs index 345b6ab..33ca79c 100644 --- a/src/AudioSwitcher/Presentation/CommandModel/CommandAttribute.cs +++ b/src/AudioSwitcher/Presentation/CommandModel/CommandAttribute.cs @@ -3,7 +3,6 @@ // ----------------------------------------------------------------------- using System; using System.ComponentModel.Composition; -using AudioSwitcher.Presentation.CommandModel; namespace AudioSwitcher.Presentation.CommandModel { diff --git a/src/AudioSwitcher/Presentation/CommandModel/CommandProperty.cs b/src/AudioSwitcher/Presentation/CommandModel/CommandProperty.cs index fd01fe8..8e81f2b 100644 --- a/src/AudioSwitcher/Presentation/CommandModel/CommandProperty.cs +++ b/src/AudioSwitcher/Presentation/CommandModel/CommandProperty.cs @@ -1,7 +1,6 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; namespace AudioSwitcher.Presentation.CommandModel { diff --git a/src/AudioSwitcher/Presentation/CommandModel/DisabledCommand.cs b/src/AudioSwitcher/Presentation/CommandModel/DisabledCommand.cs index f8e0314..0676f8a 100644 --- a/src/AudioSwitcher/Presentation/CommandModel/DisabledCommand.cs +++ b/src/AudioSwitcher/Presentation/CommandModel/DisabledCommand.cs @@ -1,7 +1,6 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; namespace AudioSwitcher.Presentation.CommandModel { diff --git a/src/AudioSwitcher/Presentation/CommandModel/ICommand.cs b/src/AudioSwitcher/Presentation/CommandModel/ICommand.cs index e5e6f50..4f442ad 100644 --- a/src/AudioSwitcher/Presentation/CommandModel/ICommand.cs +++ b/src/AudioSwitcher/Presentation/CommandModel/ICommand.cs @@ -1,7 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; + using System.ComponentModel; using System.Drawing; diff --git a/src/AudioSwitcher/Presentation/CommandModel/ICommandMetadata.cs b/src/AudioSwitcher/Presentation/CommandModel/ICommandMetadata.cs index af78b3f..2c22ec9 100644 --- a/src/AudioSwitcher/Presentation/CommandModel/ICommandMetadata.cs +++ b/src/AudioSwitcher/Presentation/CommandModel/ICommandMetadata.cs @@ -1,7 +1,6 @@ // ----------------------------------------------------------------------- // Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; namespace AudioSwitcher.Presentation.CommandModel { diff --git a/src/AudioSwitcher/Presentation/Drawing/IconExtractor.cs b/src/AudioSwitcher/Presentation/Drawing/IconExtractor.cs index c576a3f..c773407 100644 --- a/src/AudioSwitcher/Presentation/Drawing/IconExtractor.cs +++ b/src/AudioSwitcher/Presentation/Drawing/IconExtractor.cs @@ -1,6 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean and Abdallah Gomah. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; using System.Collections.Generic; using System.Collections.ObjectModel; diff --git a/src/AudioSwitcher/Presentation/Drawing/IconInfo.cs b/src/AudioSwitcher/Presentation/Drawing/IconInfo.cs index 191905d..4fd6067 100644 --- a/src/AudioSwitcher/Presentation/Drawing/IconInfo.cs +++ b/src/AudioSwitcher/Presentation/Drawing/IconInfo.cs @@ -1,6 +1,9 @@ -// ----------------------------------------------------------------------- -// Copyright (c) David Kean and Abdallah Gomah. +#pragma warning disable IDE0073 // The file header does not match the required text // ----------------------------------------------------------------------- +// Copyright (c) David Kean and Abdallah Gomah. All rights reserved. +// ----------------------------------------------------------------------- +#pragma warning restore IDE0073 // The file header does not match the required text + using System; using System.Collections.Generic; using System.IO; diff --git a/src/AudioSwitcher/Presentation/Drawing/Interop/DllImports.cs b/src/AudioSwitcher/Presentation/Drawing/Interop/DllImports.cs index 8f6c25a..7373e2a 100644 --- a/src/AudioSwitcher/Presentation/Drawing/Interop/DllImports.cs +++ b/src/AudioSwitcher/Presentation/Drawing/Interop/DllImports.cs @@ -1,9 +1,10 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; using System.Runtime.InteropServices; -using AudioSwitcher.Audio.Interop; + using AudioSwitcher.Interop; namespace AudioSwitcher.Presentation.Drawing.Interop diff --git a/src/AudioSwitcher/Presentation/Drawing/Interop/EnumResNameProc.cs b/src/AudioSwitcher/Presentation/Drawing/Interop/EnumResNameProc.cs index e872ca5..e2e24b7 100644 --- a/src/AudioSwitcher/Presentation/Drawing/Interop/EnumResNameProc.cs +++ b/src/AudioSwitcher/Presentation/Drawing/Interop/EnumResNameProc.cs @@ -1,6 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean and Abdallah Gomah. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; using System.Runtime.InteropServices; diff --git a/src/AudioSwitcher/Presentation/Drawing/Interop/GroupIconDir.cs b/src/AudioSwitcher/Presentation/Drawing/Interop/GroupIconDir.cs index 46abe1f..504c18d 100644 --- a/src/AudioSwitcher/Presentation/Drawing/Interop/GroupIconDir.cs +++ b/src/AudioSwitcher/Presentation/Drawing/Interop/GroupIconDir.cs @@ -1,10 +1,10 @@ -using System; -using System.Collections.Generic; -using System.Text; +// ----------------------------------------------------------------------- +// Copyright (c) David Kean. All rights reserved. +// ----------------------------------------------------------------------- + using System.Runtime.InteropServices; -using BYTE = System.Byte; + using WORD = System.Int16; -using DWORD = System.Int32; namespace AudioSwitcher.Presentation.Drawing { diff --git a/src/AudioSwitcher/Presentation/Drawing/Interop/GroupIconDirEntry.cs b/src/AudioSwitcher/Presentation/Drawing/Interop/GroupIconDirEntry.cs index a14a659..65c659a 100644 --- a/src/AudioSwitcher/Presentation/Drawing/Interop/GroupIconDirEntry.cs +++ b/src/AudioSwitcher/Presentation/Drawing/Interop/GroupIconDirEntry.cs @@ -1,6 +1,7 @@ -using System; -using System.Collections.Generic; -using System.Text; +// ----------------------------------------------------------------------- +// Copyright (c) David Kean. All rights reserved. +// ----------------------------------------------------------------------- + using System.Runtime.InteropServices; using BYTE = System.Byte; using WORD = System.Int16; diff --git a/src/AudioSwitcher/Presentation/Drawing/Interop/IconDir.cs b/src/AudioSwitcher/Presentation/Drawing/Interop/IconDir.cs index 3a72867..265b323 100644 --- a/src/AudioSwitcher/Presentation/Drawing/Interop/IconDir.cs +++ b/src/AudioSwitcher/Presentation/Drawing/Interop/IconDir.cs @@ -1,10 +1,10 @@ -using System; -using System.Collections.Generic; -using System.Text; +// ----------------------------------------------------------------------- +// Copyright (c) David Kean. All rights reserved. +// ----------------------------------------------------------------------- + using System.Runtime.InteropServices; -using BYTE = System.Byte; + using WORD = System.Int16; -using DWORD = System.Int32; namespace AudioSwitcher.Presentation.Drawing { diff --git a/src/AudioSwitcher/Presentation/Drawing/Interop/IconDirEntry.cs b/src/AudioSwitcher/Presentation/Drawing/Interop/IconDirEntry.cs index c8ac31c..1dbb862 100644 --- a/src/AudioSwitcher/Presentation/Drawing/Interop/IconDirEntry.cs +++ b/src/AudioSwitcher/Presentation/Drawing/Interop/IconDirEntry.cs @@ -1,6 +1,7 @@ -using System; -using System.Collections.Generic; -using System.Text; +// ----------------------------------------------------------------------- +// Copyright (c) David Kean. All rights reserved. +// ----------------------------------------------------------------------- + using System.Runtime.InteropServices; using BYTE = System.Byte; using WORD = System.Int16; diff --git a/src/AudioSwitcher/Presentation/Drawing/Interop/LoadLibraryExFlags.cs b/src/AudioSwitcher/Presentation/Drawing/Interop/LoadLibraryExFlags.cs index 89ef55e..3b5f5b3 100644 --- a/src/AudioSwitcher/Presentation/Drawing/Interop/LoadLibraryExFlags.cs +++ b/src/AudioSwitcher/Presentation/Drawing/Interop/LoadLibraryExFlags.cs @@ -1,6 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean and Abdallah Gomah. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; namespace AudioSwitcher.Presentation.Drawing.Interop diff --git a/src/AudioSwitcher/Presentation/Drawing/Interop/LookupIconIdFromDirectoryExFlags.cs b/src/AudioSwitcher/Presentation/Drawing/Interop/LookupIconIdFromDirectoryExFlags.cs index 81c2c7b..5109318 100644 --- a/src/AudioSwitcher/Presentation/Drawing/Interop/LookupIconIdFromDirectoryExFlags.cs +++ b/src/AudioSwitcher/Presentation/Drawing/Interop/LookupIconIdFromDirectoryExFlags.cs @@ -1,7 +1,6 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean and Abdallah Gomah. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; namespace AudioSwitcher.Presentation.Drawing.Interop { diff --git a/src/AudioSwitcher/Presentation/Drawing/Interop/ResourceTypes.cs b/src/AudioSwitcher/Presentation/Drawing/Interop/ResourceTypes.cs index bb19e87..d68046e 100644 --- a/src/AudioSwitcher/Presentation/Drawing/Interop/ResourceTypes.cs +++ b/src/AudioSwitcher/Presentation/Drawing/Interop/ResourceTypes.cs @@ -1,7 +1,6 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean and Abdallah Gomah. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; namespace AudioSwitcher.Presentation.Drawing.Interop { diff --git a/src/AudioSwitcher/Presentation/Drawing/Interop/SafeModuleHandle.cs b/src/AudioSwitcher/Presentation/Drawing/Interop/SafeModuleHandle.cs index daf41dd..c1d9f51 100644 --- a/src/AudioSwitcher/Presentation/Drawing/Interop/SafeModuleHandle.cs +++ b/src/AudioSwitcher/Presentation/Drawing/Interop/SafeModuleHandle.cs @@ -1,6 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; using System.Runtime.InteropServices; diff --git a/src/AudioSwitcher/Presentation/Drawing/ResourceName.cs b/src/AudioSwitcher/Presentation/Drawing/ResourceName.cs index 7d231c3..af4ced4 100644 --- a/src/AudioSwitcher/Presentation/Drawing/ResourceName.cs +++ b/src/AudioSwitcher/Presentation/Drawing/ResourceName.cs @@ -1,6 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean and Abdallah Gomah. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; using System.Runtime.InteropServices; diff --git a/src/AudioSwitcher/Presentation/Drawing/ShellIcon.cs b/src/AudioSwitcher/Presentation/Drawing/ShellIcon.cs index 553fda0..1144748 100644 --- a/src/AudioSwitcher/Presentation/Drawing/ShellIcon.cs +++ b/src/AudioSwitcher/Presentation/Drawing/ShellIcon.cs @@ -1,6 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; using System.ComponentModel; using System.Drawing; diff --git a/src/AudioSwitcher/Presentation/IPresenterMetadata.cs b/src/AudioSwitcher/Presentation/IPresenterMetadata.cs index 65dbec4..cc0273a 100644 --- a/src/AudioSwitcher/Presentation/IPresenterMetadata.cs +++ b/src/AudioSwitcher/Presentation/IPresenterMetadata.cs @@ -1,7 +1,6 @@ // ----------------------------------------------------------------------- // Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; namespace AudioSwitcher.Presentation { diff --git a/src/AudioSwitcher/Presentation/NonModalPresenter.cs b/src/AudioSwitcher/Presentation/NonModalPresenter.cs index c2d8686..27027c5 100644 --- a/src/AudioSwitcher/Presentation/NonModalPresenter.cs +++ b/src/AudioSwitcher/Presentation/NonModalPresenter.cs @@ -1,9 +1,6 @@ // ----------------------------------------------------------------------- // Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; -using System.ComponentModel; -using AudioSwitcher.ComponentModel; namespace AudioSwitcher.Presentation { diff --git a/src/AudioSwitcher/Presentation/Presenter.cs b/src/AudioSwitcher/Presentation/Presenter.cs index 59b0801..88bbfff 100644 --- a/src/AudioSwitcher/Presentation/Presenter.cs +++ b/src/AudioSwitcher/Presentation/Presenter.cs @@ -2,7 +2,7 @@ // Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- using System; -using System.ComponentModel; + using AudioSwitcher.ComponentModel; namespace AudioSwitcher.Presentation diff --git a/src/AudioSwitcher/Presentation/PresenterHost.cs b/src/AudioSwitcher/Presentation/PresenterHost.cs index b02b441..1ae90b1 100644 --- a/src/AudioSwitcher/Presentation/PresenterHost.cs +++ b/src/AudioSwitcher/Presentation/PresenterHost.cs @@ -6,7 +6,7 @@ using System.ComponentModel.Composition; using System.Drawing; using System.Linq; -using System.Windows.Forms; + using AudioSwitcher.ComponentModel; namespace AudioSwitcher.Presentation diff --git a/src/AudioSwitcher/Presentation/UI/AudioContextMenuStrip.cs b/src/AudioSwitcher/Presentation/UI/AudioContextMenuStrip.cs index 523e501..a01af0c 100644 --- a/src/AudioSwitcher/Presentation/UI/AudioContextMenuStrip.cs +++ b/src/AudioSwitcher/Presentation/UI/AudioContextMenuStrip.cs @@ -1,6 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; using System.Diagnostics; using System.Drawing; diff --git a/src/AudioSwitcher/Presentation/UI/AudioToolStripMenuItem.cs b/src/AudioSwitcher/Presentation/UI/AudioToolStripMenuItem.cs index 39b3f10..1ce3d9f 100644 --- a/src/AudioSwitcher/Presentation/UI/AudioToolStripMenuItem.cs +++ b/src/AudioSwitcher/Presentation/UI/AudioToolStripMenuItem.cs @@ -1,6 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; using System.Drawing; using System.Windows.Forms; diff --git a/src/AudioSwitcher/Presentation/UI/Interop/DllImports.cs b/src/AudioSwitcher/Presentation/UI/Interop/DllImports.cs index 5da6f04..37e47ea 100644 --- a/src/AudioSwitcher/Presentation/UI/Interop/DllImports.cs +++ b/src/AudioSwitcher/Presentation/UI/Interop/DllImports.cs @@ -1,9 +1,10 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; using System.Runtime.InteropServices; -using AudioSwitcher.Audio.Interop; + using AudioSwitcher.Interop; namespace AudioSwitcher.Presentation.UI.Interop diff --git a/src/AudioSwitcher/Presentation/UI/Interop/MARGINS.cs b/src/AudioSwitcher/Presentation/UI/Interop/MARGINS.cs index d5f8cd5..542e85f 100644 --- a/src/AudioSwitcher/Presentation/UI/Interop/MARGINS.cs +++ b/src/AudioSwitcher/Presentation/UI/Interop/MARGINS.cs @@ -1,7 +1,6 @@ // ----------------------------------------------------------------------- // Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; namespace AudioSwitcher.Presentation.UI.Interop { diff --git a/src/AudioSwitcher/Presentation/UI/Renderer/MarginTypes.cs b/src/AudioSwitcher/Presentation/UI/Renderer/MarginTypes.cs index 2b3cdaa..2f14a43 100644 --- a/src/AudioSwitcher/Presentation/UI/Renderer/MarginTypes.cs +++ b/src/AudioSwitcher/Presentation/UI/Renderer/MarginTypes.cs @@ -1,7 +1,6 @@ // ----------------------------------------------------------------------- // Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; namespace AudioSwitcher.Presentation.UI { diff --git a/src/AudioSwitcher/Presentation/UI/Renderer/MenuBarItemStates.cs b/src/AudioSwitcher/Presentation/UI/Renderer/MenuBarItemStates.cs index 17c1a27..47d423a 100644 --- a/src/AudioSwitcher/Presentation/UI/Renderer/MenuBarItemStates.cs +++ b/src/AudioSwitcher/Presentation/UI/Renderer/MenuBarItemStates.cs @@ -1,7 +1,6 @@ // ----------------------------------------------------------------------- // Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; namespace AudioSwitcher.Presentation.UI { diff --git a/src/AudioSwitcher/Presentation/UI/Renderer/MenuBarStates.cs b/src/AudioSwitcher/Presentation/UI/Renderer/MenuBarStates.cs index 68c5cc9..489c7d8 100644 --- a/src/AudioSwitcher/Presentation/UI/Renderer/MenuBarStates.cs +++ b/src/AudioSwitcher/Presentation/UI/Renderer/MenuBarStates.cs @@ -1,7 +1,6 @@ // ----------------------------------------------------------------------- // Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; namespace AudioSwitcher.Presentation.UI { diff --git a/src/AudioSwitcher/Presentation/UI/Renderer/MenuParts.cs b/src/AudioSwitcher/Presentation/UI/Renderer/MenuParts.cs index eeb2619..f8b2c15 100644 --- a/src/AudioSwitcher/Presentation/UI/Renderer/MenuParts.cs +++ b/src/AudioSwitcher/Presentation/UI/Renderer/MenuParts.cs @@ -1,7 +1,6 @@ // ----------------------------------------------------------------------- // Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; namespace AudioSwitcher.Presentation.UI { diff --git a/src/AudioSwitcher/Presentation/UI/Renderer/MenuPopupCheckBackgroundStates.cs b/src/AudioSwitcher/Presentation/UI/Renderer/MenuPopupCheckBackgroundStates.cs index e362e67..631a3dc 100644 --- a/src/AudioSwitcher/Presentation/UI/Renderer/MenuPopupCheckBackgroundStates.cs +++ b/src/AudioSwitcher/Presentation/UI/Renderer/MenuPopupCheckBackgroundStates.cs @@ -1,7 +1,6 @@ // ----------------------------------------------------------------------- // Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; namespace AudioSwitcher.Presentation.UI { diff --git a/src/AudioSwitcher/Presentation/UI/Renderer/MenuPopupCheckStates.cs b/src/AudioSwitcher/Presentation/UI/Renderer/MenuPopupCheckStates.cs index 7f0d10b..491cca8 100644 --- a/src/AudioSwitcher/Presentation/UI/Renderer/MenuPopupCheckStates.cs +++ b/src/AudioSwitcher/Presentation/UI/Renderer/MenuPopupCheckStates.cs @@ -1,7 +1,6 @@ // ----------------------------------------------------------------------- // Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; namespace AudioSwitcher.Presentation.UI { diff --git a/src/AudioSwitcher/Presentation/UI/Renderer/MenuPopupItemStates.cs b/src/AudioSwitcher/Presentation/UI/Renderer/MenuPopupItemStates.cs index 8d1f6d8..8bc1fb2 100644 --- a/src/AudioSwitcher/Presentation/UI/Renderer/MenuPopupItemStates.cs +++ b/src/AudioSwitcher/Presentation/UI/Renderer/MenuPopupItemStates.cs @@ -1,7 +1,6 @@ // ----------------------------------------------------------------------- // Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; namespace AudioSwitcher.Presentation.UI { diff --git a/src/AudioSwitcher/Presentation/UI/Renderer/MenuPopupSubMenuStates.cs b/src/AudioSwitcher/Presentation/UI/Renderer/MenuPopupSubMenuStates.cs index 0ea1be3..c7d18a7 100644 --- a/src/AudioSwitcher/Presentation/UI/Renderer/MenuPopupSubMenuStates.cs +++ b/src/AudioSwitcher/Presentation/UI/Renderer/MenuPopupSubMenuStates.cs @@ -1,7 +1,6 @@ // ----------------------------------------------------------------------- // Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; namespace AudioSwitcher.Presentation.UI { diff --git a/src/AudioSwitcher/Presentation/UI/Renderer/ToolStripNativeRenderer.cs b/src/AudioSwitcher/Presentation/UI/Renderer/ToolStripNativeRenderer.cs index cd983f5..f15d715 100644 --- a/src/AudioSwitcher/Presentation/UI/Renderer/ToolStripNativeRenderer.cs +++ b/src/AudioSwitcher/Presentation/UI/Renderer/ToolStripNativeRenderer.cs @@ -1,6 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + // Thanks for fixes: // * Marco Minerva, jachymko - http://www.codeplex.com/windowsformsaero // * Ben Ryves - http://www.benryves.com/// @@ -12,9 +13,9 @@ using System; using System.Drawing; -using System.Runtime.InteropServices; using System.Windows.Forms; using System.Windows.Forms.VisualStyles; + using AudioSwitcher.Presentation.UI.Interop; namespace AudioSwitcher.Presentation.UI diff --git a/src/AudioSwitcher/Presentation/UI/Renderer/ToolbarTheme.cs b/src/AudioSwitcher/Presentation/UI/Renderer/ToolbarTheme.cs index 900e0f1..a5e4d6e 100644 --- a/src/AudioSwitcher/Presentation/UI/Renderer/ToolbarTheme.cs +++ b/src/AudioSwitcher/Presentation/UI/Renderer/ToolbarTheme.cs @@ -1,7 +1,6 @@ // ----------------------------------------------------------------------- // Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; namespace AudioSwitcher.Presentation.UI { diff --git a/src/AudioSwitcher/Presentation/UI/ToolStripExtensions.cs b/src/AudioSwitcher/Presentation/UI/ToolStripExtensions.cs index 8ca97bc..3604ac4 100644 --- a/src/AudioSwitcher/Presentation/UI/ToolStripExtensions.cs +++ b/src/AudioSwitcher/Presentation/UI/ToolStripExtensions.cs @@ -1,9 +1,8 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; -using System.Linq; -using System.ComponentModel; using System.Windows.Forms; using AudioSwitcher.ComponentModel; using AudioSwitcher.Presentation.CommandModel; diff --git a/src/AudioSwitcher/Presentation/UI/ToolStripItemCommandBinding.cs b/src/AudioSwitcher/Presentation/UI/ToolStripItemCommandBinding.cs index 07256b7..c1db806 100644 --- a/src/AudioSwitcher/Presentation/UI/ToolStripItemCommandBinding.cs +++ b/src/AudioSwitcher/Presentation/UI/ToolStripItemCommandBinding.cs @@ -1,6 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; using System.ComponentModel; using System.Diagnostics; diff --git a/src/AudioSwitcher/Presentation/UI/UIServices.cs b/src/AudioSwitcher/Presentation/UI/UIServices.cs index 3dd5ccd..326016c 100644 --- a/src/AudioSwitcher/Presentation/UI/UIServices.cs +++ b/src/AudioSwitcher/Presentation/UI/UIServices.cs @@ -1,7 +1,6 @@ // ----------------------------------------------------------------------- // Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; using System.Diagnostics; using System.Drawing; using System.Windows.Forms; diff --git a/src/AudioSwitcher/Program.cs b/src/AudioSwitcher/Program.cs index 1f04bf2..480e8e3 100644 --- a/src/AudioSwitcher/Program.cs +++ b/src/AudioSwitcher/Program.cs @@ -1,6 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; using System.ComponentModel.Composition.Hosting; using System.Reflection; diff --git a/src/AudioSwitcher/Properties/AssemblyInfo.cs b/src/AudioSwitcher/Properties/AssemblyInfo.cs index 452fc78..2b6c0bc 100644 --- a/src/AudioSwitcher/Properties/AssemblyInfo.cs +++ b/src/AudioSwitcher/Properties/AssemblyInfo.cs @@ -1,6 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System.Reflection; using System.Resources; using System.Runtime.InteropServices; diff --git a/src/AudioSwitcher/UI/Commands/AudioDeviceCommand.cs b/src/AudioSwitcher/UI/Commands/AudioDeviceCommand.cs index 6ba6e9f..aecccd4 100644 --- a/src/AudioSwitcher/UI/Commands/AudioDeviceCommand.cs +++ b/src/AudioSwitcher/UI/Commands/AudioDeviceCommand.cs @@ -1,9 +1,10 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; + using System.ComponentModel.Composition; using System.Text; + using AudioSwitcher.Audio; using AudioSwitcher.Presentation.CommandModel; using AudioSwitcher.UI.ViewModels; diff --git a/src/AudioSwitcher/UI/Commands/AutomaticallySwitchToPluggedInDeviceCommand.cs b/src/AudioSwitcher/UI/Commands/AutomaticallySwitchToPluggedInDeviceCommand.cs index 5c3ae74..e0674e2 100644 --- a/src/AudioSwitcher/UI/Commands/AutomaticallySwitchToPluggedInDeviceCommand.cs +++ b/src/AudioSwitcher/UI/Commands/AutomaticallySwitchToPluggedInDeviceCommand.cs @@ -1,7 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; + using AudioSwitcher.Presentation.CommandModel; namespace AudioSwitcher.UI.Commands diff --git a/src/AudioSwitcher/UI/Commands/CommandId.cs b/src/AudioSwitcher/UI/Commands/CommandId.cs index d05e928..131ccad 100644 --- a/src/AudioSwitcher/UI/Commands/CommandId.cs +++ b/src/AudioSwitcher/UI/Commands/CommandId.cs @@ -1,7 +1,6 @@ // ----------------------------------------------------------------------- // Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; namespace AudioSwitcher.UI.Commands { diff --git a/src/AudioSwitcher/UI/Commands/DeviceSeparatorCommand.cs b/src/AudioSwitcher/UI/Commands/DeviceSeparatorCommand.cs index 821b1af..d0bbe02 100644 --- a/src/AudioSwitcher/UI/Commands/DeviceSeparatorCommand.cs +++ b/src/AudioSwitcher/UI/Commands/DeviceSeparatorCommand.cs @@ -1,7 +1,6 @@ // ----------------------------------------------------------------------- // Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; using AudioSwitcher.Presentation.CommandModel; namespace AudioSwitcher.UI.Commands diff --git a/src/AudioSwitcher/UI/Commands/ExitCommand.cs b/src/AudioSwitcher/UI/Commands/ExitCommand.cs index 7d00e4d..4990a18 100644 --- a/src/AudioSwitcher/UI/Commands/ExitCommand.cs +++ b/src/AudioSwitcher/UI/Commands/ExitCommand.cs @@ -1,8 +1,9 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; + using System.ComponentModel.Composition; + using AudioSwitcher.ApplicationModel; using AudioSwitcher.Presentation.CommandModel; diff --git a/src/AudioSwitcher/UI/Commands/NoDevicesCommand.cs b/src/AudioSwitcher/UI/Commands/NoDevicesCommand.cs index 46c8eaf..2b96c42 100644 --- a/src/AudioSwitcher/UI/Commands/NoDevicesCommand.cs +++ b/src/AudioSwitcher/UI/Commands/NoDevicesCommand.cs @@ -1,7 +1,6 @@ // ----------------------------------------------------------------------- // Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; using AudioSwitcher.Presentation.CommandModel; namespace AudioSwitcher.UI.Commands diff --git a/src/AudioSwitcher/UI/Commands/NoDevicesCommandBase.cs b/src/AudioSwitcher/UI/Commands/NoDevicesCommandBase.cs index d3dab83..cc421cc 100644 --- a/src/AudioSwitcher/UI/Commands/NoDevicesCommandBase.cs +++ b/src/AudioSwitcher/UI/Commands/NoDevicesCommandBase.cs @@ -1,8 +1,8 @@ // ----------------------------------------------------------------------- // Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; using System.Linq; + using AudioSwitcher.Audio; using AudioSwitcher.Presentation.CommandModel; using AudioSwitcher.UI.ViewModels; diff --git a/src/AudioSwitcher/UI/Commands/NoPlaybackDevicesCommand.cs b/src/AudioSwitcher/UI/Commands/NoPlaybackDevicesCommand.cs index bd3f8ad..37eb257 100644 --- a/src/AudioSwitcher/UI/Commands/NoPlaybackDevicesCommand.cs +++ b/src/AudioSwitcher/UI/Commands/NoPlaybackDevicesCommand.cs @@ -1,8 +1,8 @@ // ----------------------------------------------------------------------- // Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; using System.ComponentModel.Composition; + using AudioSwitcher.Audio; using AudioSwitcher.Presentation.CommandModel; using AudioSwitcher.UI.ViewModels; diff --git a/src/AudioSwitcher/UI/Commands/NoRecordingDevicesCommand.cs b/src/AudioSwitcher/UI/Commands/NoRecordingDevicesCommand.cs index a805173..01d9717 100644 --- a/src/AudioSwitcher/UI/Commands/NoRecordingDevicesCommand.cs +++ b/src/AudioSwitcher/UI/Commands/NoRecordingDevicesCommand.cs @@ -1,8 +1,8 @@ // ----------------------------------------------------------------------- // Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; using System.ComponentModel.Composition; + using AudioSwitcher.Audio; using AudioSwitcher.Presentation.CommandModel; using AudioSwitcher.UI.ViewModels; diff --git a/src/AudioSwitcher/UI/Commands/RunAtWindowsStartupCommand.cs b/src/AudioSwitcher/UI/Commands/RunAtWindowsStartupCommand.cs index c74c6f5..873f8c6 100644 --- a/src/AudioSwitcher/UI/Commands/RunAtWindowsStartupCommand.cs +++ b/src/AudioSwitcher/UI/Commands/RunAtWindowsStartupCommand.cs @@ -1,6 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; using System.ComponentModel.Composition; using System.IO; diff --git a/src/AudioSwitcher/UI/Commands/SetAsDefaultCommunicationDeviceCommand.cs b/src/AudioSwitcher/UI/Commands/SetAsDefaultCommunicationDeviceCommand.cs index 02f841b..10edbe3 100644 --- a/src/AudioSwitcher/UI/Commands/SetAsDefaultCommunicationDeviceCommand.cs +++ b/src/AudioSwitcher/UI/Commands/SetAsDefaultCommunicationDeviceCommand.cs @@ -1,8 +1,9 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; + using System.ComponentModel.Composition; + using AudioSwitcher.Audio; using AudioSwitcher.Presentation.CommandModel; diff --git a/src/AudioSwitcher/UI/Commands/SetAsDefaultDeviceCommandBase.cs b/src/AudioSwitcher/UI/Commands/SetAsDefaultDeviceCommandBase.cs index 5122b2f..89ff601 100644 --- a/src/AudioSwitcher/UI/Commands/SetAsDefaultDeviceCommandBase.cs +++ b/src/AudioSwitcher/UI/Commands/SetAsDefaultDeviceCommandBase.cs @@ -1,9 +1,9 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; + using System.Diagnostics; -using System.Linq; + using AudioSwitcher.Audio; using AudioSwitcher.Presentation.CommandModel; using AudioSwitcher.UI.ViewModels; diff --git a/src/AudioSwitcher/UI/Commands/SetAsDefaultMultimediaDeviceCommand.cs b/src/AudioSwitcher/UI/Commands/SetAsDefaultMultimediaDeviceCommand.cs index e3908b7..8c3bd0e 100644 --- a/src/AudioSwitcher/UI/Commands/SetAsDefaultMultimediaDeviceCommand.cs +++ b/src/AudioSwitcher/UI/Commands/SetAsDefaultMultimediaDeviceCommand.cs @@ -1,8 +1,9 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; + using System.ComponentModel.Composition; + using AudioSwitcher.Audio; using AudioSwitcher.Presentation.CommandModel; diff --git a/src/AudioSwitcher/UI/Commands/ShowDisabledDevicesCommand.cs b/src/AudioSwitcher/UI/Commands/ShowDisabledDevicesCommand.cs index 3de7889..4212dc6 100644 --- a/src/AudioSwitcher/UI/Commands/ShowDisabledDevicesCommand.cs +++ b/src/AudioSwitcher/UI/Commands/ShowDisabledDevicesCommand.cs @@ -1,9 +1,9 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; + using System.ComponentModel.Composition; -using System.Drawing; + using AudioSwitcher.Presentation.CommandModel; namespace AudioSwitcher.UI.Commands diff --git a/src/AudioSwitcher/UI/Commands/ShowNotPresentDevicesCommand.cs b/src/AudioSwitcher/UI/Commands/ShowNotPresentDevicesCommand.cs index 88da9dc..a16d0f8 100644 --- a/src/AudioSwitcher/UI/Commands/ShowNotPresentDevicesCommand.cs +++ b/src/AudioSwitcher/UI/Commands/ShowNotPresentDevicesCommand.cs @@ -1,8 +1,9 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; + using System.ComponentModel.Composition; + using AudioSwitcher.Presentation.CommandModel; namespace AudioSwitcher.UI.Commands diff --git a/src/AudioSwitcher/UI/Commands/ShowPlaybackDevicesCommand.cs b/src/AudioSwitcher/UI/Commands/ShowPlaybackDevicesCommand.cs index b97fdf5..c0deb29 100644 --- a/src/AudioSwitcher/UI/Commands/ShowPlaybackDevicesCommand.cs +++ b/src/AudioSwitcher/UI/Commands/ShowPlaybackDevicesCommand.cs @@ -1,8 +1,9 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; + using System.ComponentModel.Composition; + using AudioSwitcher.Presentation.CommandModel; namespace AudioSwitcher.UI.Commands diff --git a/src/AudioSwitcher/UI/Commands/ShowRecordingDevicesCommand.cs b/src/AudioSwitcher/UI/Commands/ShowRecordingDevicesCommand.cs index aa7cf35..b4a73f6 100644 --- a/src/AudioSwitcher/UI/Commands/ShowRecordingDevicesCommand.cs +++ b/src/AudioSwitcher/UI/Commands/ShowRecordingDevicesCommand.cs @@ -1,8 +1,9 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; + using System.ComponentModel.Composition; + using AudioSwitcher.Presentation.CommandModel; namespace AudioSwitcher.UI.Commands diff --git a/src/AudioSwitcher/UI/Commands/ShowUnpluggedDevicesCommand.cs b/src/AudioSwitcher/UI/Commands/ShowUnpluggedDevicesCommand.cs index 500f58e..4692207 100644 --- a/src/AudioSwitcher/UI/Commands/ShowUnpluggedDevicesCommand.cs +++ b/src/AudioSwitcher/UI/Commands/ShowUnpluggedDevicesCommand.cs @@ -1,8 +1,9 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; + using System.ComponentModel.Composition; + using AudioSwitcher.Presentation.CommandModel; namespace AudioSwitcher.UI.Commands diff --git a/src/AudioSwitcher/UI/Presenters/DeviceFlyoutPresenter.cs b/src/AudioSwitcher/UI/Presenters/DeviceFlyoutPresenter.cs index 1f883f9..7435dde 100644 --- a/src/AudioSwitcher/UI/Presenters/DeviceFlyoutPresenter.cs +++ b/src/AudioSwitcher/UI/Presenters/DeviceFlyoutPresenter.cs @@ -1,6 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; using System.ComponentModel.Composition; using System.Linq; @@ -22,15 +23,13 @@ internal class DeviceFlyoutPresenter : ContextMenuPresenter, IDisposable { private readonly AudioDeviceViewModelManager _viewModelManager; private readonly CommandManager _commandManager; - private readonly PresenterHost _presenterManager; [ImportingConstructor] - public DeviceFlyoutPresenter(IApplication application, AudioDeviceViewModelManager viewModelManager, CommandManager commandManager, PresenterHost presenterManager) + public DeviceFlyoutPresenter(IApplication application, AudioDeviceViewModelManager viewModelManager, CommandManager commandManager) : base(application) { _viewModelManager = viewModelManager; _commandManager = commandManager; - _presenterManager = presenterManager; } protected override AudioContextMenuStrip CreateContextMenu() @@ -58,7 +57,7 @@ public override void Dispose() RegisterHandlers(add:false); } - private void AddDeviceCommands(AudioDeviceKind kind, string noDeviceCommandId, bool firstRun = false) + private void AddDeviceCommands(AudioDeviceKind kind, string noDeviceCommandId) { AudioDeviceViewModel[] devices = GetDevices(kind); foreach (AudioDeviceViewModel device in devices) diff --git a/src/AudioSwitcher/UI/Presenters/NotificationIconContextMenuPresenter.cs b/src/AudioSwitcher/UI/Presenters/NotificationIconContextMenuPresenter.cs index 762ee59..925e2ed 100644 --- a/src/AudioSwitcher/UI/Presenters/NotificationIconContextMenuPresenter.cs +++ b/src/AudioSwitcher/UI/Presenters/NotificationIconContextMenuPresenter.cs @@ -1,6 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System.ComponentModel.Composition; using System.Windows.Forms; using AudioSwitcher.ApplicationModel; diff --git a/src/AudioSwitcher/UI/Presenters/PresenterId.cs b/src/AudioSwitcher/UI/Presenters/PresenterId.cs index fadff92..3346bca 100644 --- a/src/AudioSwitcher/UI/Presenters/PresenterId.cs +++ b/src/AudioSwitcher/UI/Presenters/PresenterId.cs @@ -1,7 +1,6 @@ // ----------------------------------------------------------------------- // Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; namespace AudioSwitcher.UI.Presenters { diff --git a/src/AudioSwitcher/UI/ViewModels/AudioDeviceViewModel.cs b/src/AudioSwitcher/UI/ViewModels/AudioDeviceViewModel.cs index 00f040e..f998257 100644 --- a/src/AudioSwitcher/UI/ViewModels/AudioDeviceViewModel.cs +++ b/src/AudioSwitcher/UI/ViewModels/AudioDeviceViewModel.cs @@ -1,9 +1,9 @@ // ----------------------------------------------------------------------- // Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- -using System; using System.Drawing; using System.Windows.Forms; + using AudioSwitcher.Audio; using AudioSwitcher.Presentation.Drawing; using AudioSwitcher.Presentation.UI; diff --git a/src/AudioSwitcher/UI/ViewModels/AudioDeviceViewModelManager.cs b/src/AudioSwitcher/UI/ViewModels/AudioDeviceViewModelManager.cs index 25b5b1f..c8f6d34 100644 --- a/src/AudioSwitcher/UI/ViewModels/AudioDeviceViewModelManager.cs +++ b/src/AudioSwitcher/UI/ViewModels/AudioDeviceViewModelManager.cs @@ -5,8 +5,8 @@ using System.Collections.ObjectModel; using System.ComponentModel; using System.ComponentModel.Composition; -using System.Diagnostics; using System.Linq; + using AudioSwitcher.Audio; namespace AudioSwitcher.UI.ViewModels diff --git a/src/AudioSwitcher/UI/Views/DeviceFlyoutView.cs b/src/AudioSwitcher/UI/Views/DeviceFlyoutView.cs index 7dcdc5f..af9c982 100644 --- a/src/AudioSwitcher/UI/Views/DeviceFlyoutView.cs +++ b/src/AudioSwitcher/UI/Views/DeviceFlyoutView.cs @@ -1,6 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; using System.Drawing; using System.Windows.Forms; diff --git a/src/AudioSwitcher/Win32/InteropServices/Win32Marshal.cs b/src/AudioSwitcher/Win32/InteropServices/Win32Marshal.cs index 5b85f21..dfa5af1 100644 --- a/src/AudioSwitcher/Win32/InteropServices/Win32Marshal.cs +++ b/src/AudioSwitcher/Win32/InteropServices/Win32Marshal.cs @@ -1,6 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; using System.ComponentModel; using System.IO; diff --git a/src/AudioSwitcher/Win32/RegistryKeyExtensions.cs b/src/AudioSwitcher/Win32/RegistryKeyExtensions.cs index 3e98b87..c86faee 100644 --- a/src/AudioSwitcher/Win32/RegistryKeyExtensions.cs +++ b/src/AudioSwitcher/Win32/RegistryKeyExtensions.cs @@ -1,6 +1,7 @@ // ----------------------------------------------------------------------- -// Copyright (c) David Kean. +// Copyright (c) David Kean. All rights reserved. // ----------------------------------------------------------------------- + using System; using System.IO; using System.Security;