Esempio n. 1
0
        static void Main()
        {
            gXMLProcess = new xmlDataProcess();
            xmlConfigStart(false);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            mMainSystemManagerForm = new MainSystemManagerForm();
            mNetworkSystemProcess  = new NetworkSystemProcess(mMainSystemManagerForm,
                                                              gXMLDataConfig.mSystemManager.controlServerPort);
            mNetworkSystemProcess.startServer();
            mNetworkSystemProcess.NetworkDataReceivedHandler += NetworkDataReceivedHandler;
            ntTest = new networkTestUtil();

            mLogProc = new LogProcess(gXMLDataConfig.mSystemManager.saveLogfile, mMainSystemManagerForm);

            listener = new Listener(gXMLDataConfig.mSystemManager.NetworkManagerServerPort);
            listener.SocketAccepted += new Listener.SocketAcceptedHandler(listener_SocketAccepted);

            listener.Start("0.0.0.0");

            mMediaControl = new MediaControl();
            string url = gXMLDataConfig.mSystemManager.audioFile;

            mMediaControl.Open(url);

            mLogProc.DebugLog("System Start");
            Application.Run(mMainSystemManagerForm);
        }
Esempio n. 2
0
        public static void mp3Play()
        {
            if (!mMediaControl.isFileOpen())
            {
                string url = gXMLDataConfig.mSystemManager.audioFile;

                mMediaControl.Open(url);
                mLogProc.DebugLog("MP3 Play Open");
            }

            mMediaControl.Play(false);
        }