private void GoogleCommandExecute(object obj)
        {
            if (runningAppSession != null)
            {
                runningAppSession.Close(null);
                runningAppSession = null;
            }
            var listener = new ResponseListener
                           (
                loadEventArg =>
            {
                var session = LoadEventArgs.GetValue <LaunchSession>(loadEventArg);
                SetRunningAppInfo(session);
            },
                serviceCommandError =>
            {
            }
                           );

            launcher.LaunchBrowser("http://connectsdk.com/", listener);
        }
        private void MyDialAppCommandExecute(object obj)
        {
            if (runningAppSession != null)
            {
                myAppSession.Close(null);
                myAppSession = null;
            }

            var listener = new ResponseListener
                           (
                loadEventArg =>
            {
                var session  = LoadEventArgs.GetValue <LaunchSession>(loadEventArg);
                myAppSession = session;
            },
                serviceCommandError =>
            {
            }
                           );

            launcher.LaunchApp("Levak", listener);
        }
        private void AppStoreCommandExecute(object obj)
        {
            if (appStoreSession != null)
            {
                appStoreSession.Close(null);
                appStoreSession = null;
            }
            var listener = new ResponseListener
                           (
                loadEventArg =>
            {
                var session     = LoadEventArgs.GetValue <LaunchSession>(loadEventArg);
                appStoreSession = session;
            },
                serviceCommandError =>
            {
            }
                           );

            String appId = null;

            if (selectedDevice.GetServiceByName("Netcast TV") != null)
            {
                appId = "125071";
            }
            else if (selectedDevice.GetServiceByName("webOS TV") != null)
            {
                appId = "redbox";
            }
            else if (selectedDevice.GetServiceByName("Roku") != null)
            {
                appId = "13535";
            }

            launcher.LaunchAppStore(appId, listener);
        }