Пример #1
0
        private void DMConnected(object sender, EventArgs e)
        {
            ConnectEventArgs connectArgs = new ConnectEventArgs(true);

            if (OnConnectChangeDM != null)
            {
                OnConnectChangeDM(this, connectArgs);
            }
        }
Пример #2
0
        private void DMDisconnected(object sender, AxDBCCTRLLib._IDataManagerEvents_DisconnectedEvent e)
        {
            ConnectEventArgs connectArgs = new ConnectEventArgs(false);

            if (OnConnectChangeDM != null)
            {
                OnConnectChangeDM(this, connectArgs);
            }
        }
Пример #3
0
 public static void OnConnectionChangeDM(object wrapper, ConnectEventArgs args)
 {
     // if we are connected, and we havne't added symbols yet, then add the symbols.
     if (args.connected)
     {
         // Add the symbols to the eSignal data manager
         if (!eSignal.AreSymbolsAdded)
         {
             LoadSymbols();
         }
     }
     else if (!args.connected)
     {
         // If there are symbols, then remove them from the watch
         if (eSignal.AreSymbolsAdded)
         {
             eSignal.RemoveAllRealTimeSymbols();
         }
     }
 }