From 8522f57d5fd5a4107b7672b420b93889017f644c Mon Sep 17 00:00:00 2001 From: radj307 Date: Wed, 2 Mar 2022 17:26:42 -0500 Subject: [PATCH] update designer --- .../WindowsAPI/Addons/ISessionController.cs | 9 ++++++++ .../WindowsAPI/Addons/SessionController.cs | 19 ++++++++++++++++ VolumeControl/VolumeControlForm.Designer.cs | 22 +++++++++---------- 3 files changed, 39 insertions(+), 11 deletions(-) create mode 100644 AudioAPI/WindowsAPI/Addons/ISessionController.cs create mode 100644 AudioAPI/WindowsAPI/Addons/SessionController.cs diff --git a/AudioAPI/WindowsAPI/Addons/ISessionController.cs b/AudioAPI/WindowsAPI/Addons/ISessionController.cs new file mode 100644 index 000000000..fd0d264f3 --- /dev/null +++ b/AudioAPI/WindowsAPI/Addons/ISessionController.cs @@ -0,0 +1,9 @@ +using AudioAPI.WindowsAPI.Audio; + +namespace AudioAPI.WindowsAPI.Addons +{ + public interface ISessionController : ISimpleAudioVolume, IAudioSessionControl2 + { + bool IsVirtual { get; } + } +} \ No newline at end of file diff --git a/AudioAPI/WindowsAPI/Addons/SessionController.cs b/AudioAPI/WindowsAPI/Addons/SessionController.cs new file mode 100644 index 000000000..1cbd8e2f6 --- /dev/null +++ b/AudioAPI/WindowsAPI/Addons/SessionController.cs @@ -0,0 +1,19 @@ +namespace AudioAPI.WindowsAPI.Addons +{ + public class SessionController + { + public SessionController(ISessionController sessionController) + { + Controller = sessionController; + IsVirtual = false; + } + public SessionController() + { + Controller = null; + IsVirtual = true; + } + + public ISessionController? Controller; + public bool IsVirtual { get; } + } +} \ No newline at end of file diff --git a/VolumeControl/VolumeControlForm.Designer.cs b/VolumeControl/VolumeControlForm.Designer.cs index 578e8eb14..8242f8277 100644 --- a/VolumeControl/VolumeControlForm.Designer.cs +++ b/VolumeControl/VolumeControlForm.Designer.cs @@ -42,6 +42,7 @@ private void InitializeComponent() this.TabController = new Manina.Windows.Forms.TabControl(); this.tab_general = new Manina.Windows.Forms.Tab(); this.panel_general = new System.Windows.Forms.Panel(); + this.cb_OpenMixer = new System.Windows.Forms.Button(); this.Label_VolumeControl = new System.Windows.Forms.Label(); this.TargetSelector = new UIComposites.TargetSelector(); this.Label_VersionNumber = new System.Windows.Forms.Label(); @@ -60,7 +61,6 @@ private void InitializeComponent() this.HKEdit_ShowTarget = new UIComposites.HotkeyEditor(); this.HKEdit_PrevTarget = new UIComposites.HotkeyEditor(); this.TargetRefreshTimer = new System.Windows.Forms.Timer(this.components); - this.cb_OpenMixer = new System.Windows.Forms.Button(); this.SystemTray_ContextMenu.SuspendLayout(); this.TabController.SuspendLayout(); this.tab_general.SuspendLayout(); @@ -213,6 +213,16 @@ private void InitializeComponent() this.panel_general.Size = new System.Drawing.Size(366, 206); this.panel_general.TabIndex = 0; // + // cb_OpenMixer + // + this.cb_OpenMixer.Location = new System.Drawing.Point(150, 48); + this.cb_OpenMixer.Name = "cb_OpenMixer"; + this.cb_OpenMixer.Size = new System.Drawing.Size(51, 23); + this.cb_OpenMixer.TabIndex = 12; + this.cb_OpenMixer.Text = "Mixer"; + this.cb_OpenMixer.UseVisualStyleBackColor = false; + this.cb_OpenMixer.Click += new System.EventHandler(this.cb_OpenMixer_Click); + // // Label_VolumeControl // this.Label_VolumeControl.AutoSize = true; @@ -424,16 +434,6 @@ private void InitializeComponent() this.TargetRefreshTimer.Interval = 4000; this.TargetRefreshTimer.Tick += new System.EventHandler(this.TargetRefreshTimer_Tick); // - // cb_OpenMixer - // - this.cb_OpenMixer.Location = new System.Drawing.Point(15, 42); - this.cb_OpenMixer.Name = "cb_OpenMixer"; - this.cb_OpenMixer.Size = new System.Drawing.Size(51, 23); - this.cb_OpenMixer.TabIndex = 12; - this.cb_OpenMixer.Text = "Mixer"; - this.cb_OpenMixer.UseVisualStyleBackColor = true; - this.cb_OpenMixer.Click += new System.EventHandler(this.cb_OpenMixer_Click); - // // VolumeControlForm // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);