//END Configuration form events //START Volume control events private void ToggleShowVolumeControl() { if (this.XBMC.Status.IsConnected()) { if (!volumeControlOpened) { sysTrayVolumeControl = new VolumeControlF1(this); sysTrayVolumeControl.FormClosed += new FormClosedEventHandler(VolumeControlClosed); sysTrayVolumeControl.Left = Cursor.Position.X - (sysTrayVolumeControl.Width / 2); sysTrayVolumeControl.Top = Cursor.Position.Y - (sysTrayVolumeControl.Height + 15); sysTrayVolumeControl.Show(); sysTrayVolumeControl.Focus(); volumeControlOpened = true; } else { sysTrayVolumeControl.Dispose(); volumeControlOpened = false; } } }
//END Configuration form events //START Volume control events private void ToggleShowVolumeControl() { if (this.XBMC.Status.IsConnected()) { if (!volumeControlOpened) { sysTrayVolumeControl = new VolumeControlF1(this); sysTrayVolumeControl.FormClosed += new FormClosedEventHandler(VolumeControlClosed); sysTrayVolumeControl.Left = Cursor.Position.X - (sysTrayVolumeControl.Width / 2); sysTrayVolumeControl.Top = Cursor.Position.Y - (sysTrayVolumeControl.Height + 15); sysTrayVolumeControl.Show(); sysTrayVolumeControl.Focus(); volumeControlOpened = true; } else { sysTrayVolumeControl.Dispose(); volumeControlOpened = false; } } }
//END Configuration form events //START Volume control events private void ToggleShowVolumeControl() { if (Xbmc.Status.IsConnected()) { if (!VolumeControlOpened) { _sysTrayVolumeControl = new VolumeControlF1(this); _sysTrayVolumeControl.FormClosed += VolumeControlClosed; _sysTrayVolumeControl.Left = Cursor.Position.X - (_sysTrayVolumeControl.Width / 2); _sysTrayVolumeControl.Top = Cursor.Position.Y - (_sysTrayVolumeControl.Height + 15); _sysTrayVolumeControl.Show(); _sysTrayVolumeControl.Focus(); VolumeControlOpened = true; } else { _sysTrayVolumeControl.Dispose(); VolumeControlOpened = false; } } }