Beispiel #1
0
        /*  private void disconnect()
        {
            this.mPlaza2App.CleanUp();
        }
        */
        private void stop()
        {
            if (this.m_BaseStream != null)
            {
                this.m_BaseStream.Stop();
            }

            try
            {

                this.mPlaza2App.CleanUp();
                this.mPlaza2App = null;
            }
            catch (Exception e){
            }

            if (this.mLog != null)
            {
                mLog.Stop();
            }
        }
Beispiel #2
0
        private void connect()
        {
            try
            {

                mPlaza2App = new CP2Application();
            }
            catch (Exception ee)
            {
                MessageBox.Show("Ошибка инициализации приложения Plaza2 " + ee.Message);
            }

            this.logsService.Text = "";
            this.logsData.Text = "";
            this.logsMsg.Text = "";
            this.mLog.Start();
            this.m_BaseStream.Start();
        }