public void onClose(VZ_GameInfoUC view)
 {
     if (mainGrid.Children.Contains(view))
     {
         mainGrid.Children.Remove(view);
         gameInfoUC = null;
     }
     grid3.Visibility = Visibility.Visible;
     vpp.Visibility   = Visibility.Visible;
     VZ_AppProcessHelper.getSingleton().muteTopVideo(false);
 }
        public void onPlay(VZ_GameInfoUC view, VZ_AppInfo info)
        {
            showGameOpeningWin();
            VZ_AppProcessHelper.getSingleton().runApp(info);

            if (info.type.Equals("game") && !info.appExeName.Equals("DrumGame.exe"))
            {
                this.Activate();
            }
            view.setGameIsPlaying(true);
        }
        private void Bt_Click(object sender, RoutedEventArgs e)
        {
            int        tag  = (int)((Button)(sender)).Tag;
            VZ_AppInfo info = VZ_AppHelper.GetInstance().appList[tag];

            if (info.appId.Equals("1"))
            {
                showMovieOpeningWin();
                VZ_AppProcessHelper.getSingleton().runApp(info);
                //VZ_AppHelper.getSingleton().sendAppLog(info);
                return;
            }
            //VZ_AppProcessHelper.getSingleton().runApp(info);

            //VZ_AppHelper.getSingleton().sendAppLog(info);
            //if(info.type.Equals("game"))
            //{
            //    this.Activate();
            //}
            //showNoticeAync();

            if (gameInfoUC != null)
            {
                gameInfoUC = null;
            }
            Dispatcher.BeginInvoke((Action)(() =>
            {
                gameInfoUC = new VZ_GameInfoUC(info, this);
                Grid.SetRowSpan(gameInfoUC, 2);
                Grid.SetRow(gameInfoUC, 2);
                mainGrid.Children.Add(gameInfoUC);
                grid3.Visibility = Visibility.Hidden;
                vpp.Visibility = Visibility.Hidden;
                VZ_AppProcessHelper.getSingleton().muteTopVideo(true);
            }));
        }
 public void onQuit(VZ_GameInfoUC view, VZ_AppInfo info)
 {
     VZ_AppProcessHelper.getSingleton().closeAllApp();
     view.setGameIsPlaying(false);
 }