private void DMConnected(object sender, EventArgs e) { ConnectEventArgs connectArgs = new ConnectEventArgs(true); if (OnConnectChangeDM != null) { OnConnectChangeDM(this, connectArgs); } }
private void DMDisconnected(object sender, AxDBCCTRLLib._IDataManagerEvents_DisconnectedEvent e) { ConnectEventArgs connectArgs = new ConnectEventArgs(false); if (OnConnectChangeDM != null) { OnConnectChangeDM(this, connectArgs); } }
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(); } } }