示例#1
0
        private void stop()
        {
            this.startButtons(true);
            for (int i = 0; i < pRealPlayHandle.Length; i++)
            {
                if (pRealPlayHandle[i] != 0)
                {
                    bool pudo = DHClient.DHStopRealPlay(pRealPlayHandle[i]);

                    /*int xxx = 0;
                     * if (!pudo && xxx < 5)
                     * {
                     *  pudo = DHClient.DHStopRealPlayEx(pRealPlayHandle[i]);
                     *  xxx++;
                     * }*/
                }


                pRealPlayHandle[i] = 0;
            }
            Thread.Sleep(200);
            for (int i = 0; i < cantidadVentanas; i++)
            {
                if (i < pantallas.Count)
                {
                    pantallas[i].Refresh();
                }
            }
            //groupBoxVentanas16.Visible = false;
            //groupBoxVentanas16.Visible = true;

            /*for (int i = 0; i < cantidadVentanas; i++)
             * {
             *  if (i < pantallas.Count) pantallas[i].Refresh();
             *
             * }
             * for (int i = 0; i < cantidadVentanas; i++)
             * {
             *  if (i < pantallas.Count) pantallas[i].Refresh();
             *
             * }
             * for (int i = 0; i < cantidadVentanas; i++)
             * {
             *  if (i < pantallas.Count) pantallas[i].Refresh();
             *
             * }*/

            DHClient.DHLogout(pLoginID);

            DHClient.DHCleanup();
            DHClient.DHStopService(pLoginID);
            pLoginID = 0;
        }