示例#1
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     try
     {
         if (mBolConnected)
         {
             mObjBoards.Disconnect(mObjConnection);
         }
     }
     catch (Exception lObjException)
     {
         CustomMessageBox.Show("Error", lObjException.Message);
     }
 }
示例#2
0
 private void DisconnectBoardsService()
 {
     try
     {
         if (mBolBoardLoaded)
         {
             mObjBoardServer.Disconnect(mObjBoardConnection);
         }
     }
     catch (Exception lObjException)
     {
         ShowMessage("Conexión a pantallas", lObjException.Message);
         mBolBoardLoaded = false;
     }
 }