public void SetControls()
        {
            if (selectedDevice == null)
            {
                launcher             = null;
                mediaPlayer          = null;
                mediaControl         = null;
                tvControl            = null;
                volumeControl        = null;
                toastControl         = null;
                textInputControl     = null;
                mouseControl         = null;
                externalInputControl = null;
                powerControl         = null;
                keyControl           = null;
                playListControl      = null;
                webAppLauncher       = null;
            }
            else
            {
                launcher             = selectedDevice.GetCapability <ILauncher>();
                mediaPlayer          = selectedDevice.GetCapability <IMediaPlayer>();
                mediaControl         = selectedDevice.GetCapability <IMediaControl>();
                tvControl            = selectedDevice.GetCapability <ITvControl>();
                volumeControl        = selectedDevice.GetCapability <IVolumeControl>();
                toastControl         = selectedDevice.GetCapability <IToastControl>();
                textInputControl     = selectedDevice.GetCapability <ITextInputControl>();
                mouseControl         = selectedDevice.GetCapability <IMouseControl>();
                externalInputControl = selectedDevice.GetCapability <IExternalInputControl>();
                powerControl         = selectedDevice.GetCapability <IPowerControl>();
                keyControl           = selectedDevice.GetCapability <IKeyControl>();
                playListControl      = selectedDevice.GetCapability <IPlayListControl>();
                webAppLauncher       = selectedDevice.GetCapability <IWebAppLauncher>();
            }

            SetControlsMedia();
            SetWebAppControls();
            SetControlControls();
            SetControlApps();
            SetControlKeys();
            SetControlSystem();
        }
        public void SetControls()
        {
            if (selectedDevice == null)
            {
                launcher = null;
                mediaPlayer = null;
                mediaControl = null;
                tvControl = null;
                volumeControl = null;
                toastControl = null;
                textInputControl = null;
                mouseControl = null;
                externalInputControl = null;
                powerControl = null;
                keyControl = null;
                playListControl = null;
                webAppLauncher = null;
            }
            else
            {
                launcher = selectedDevice.GetCapability<ILauncher>();
                mediaPlayer = selectedDevice.GetCapability<IMediaPlayer>();
                mediaControl = selectedDevice.GetCapability<IMediaControl>();
                tvControl = selectedDevice.GetCapability<ITvControl>();
                volumeControl = selectedDevice.GetCapability<IVolumeControl>();
                toastControl = selectedDevice.GetCapability<IToastControl>();
                textInputControl = selectedDevice.GetCapability<ITextInputControl>();
                mouseControl = selectedDevice.GetCapability<IMouseControl>();
                externalInputControl = selectedDevice.GetCapability<IExternalInputControl>();
                powerControl = selectedDevice.GetCapability<IPowerControl>();
                keyControl = selectedDevice.GetCapability<IKeyControl>();
                playListControl = selectedDevice.GetCapability<IPlayListControl>();
                webAppLauncher = selectedDevice.GetCapability<IWebAppLauncher>();
            }

            SetControlsMedia();
            SetWebAppControls();
            SetControlControls();
            SetControlApps();
            SetControlKeys();
            SetControlSystem();
        }