/* 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(); } }
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(); }