public Inspector() { this.status = InspectorStatus.Stopped; this.subscribedVariables = new List <string>(1000); SetupCommandManager(); SetupConnectionManager(); SetupSharedVariables(); }
public Inspector() { this.status = InspectorStatus.Stopped; this.subscribedVariables = new List<string>(1000); SetupCommandManager(); SetupConnectionManager(); SetupSharedVariables(); }
public void Stop() { if (!cmdMan.IsRunning) { return; } this.status = InspectorStatus.Stopping; OnStatusChanged(); subscribedVariables.Clear(); cmdMan.Stop(); }
private void cmdMan_SharedVariablesLoaded(CommandManager cmdMan) { if (this.cmdMan.SharedVariables.Contains(this.shVariableList.Name)) { this.shVariableList = (StringSharedVariable)this.cmdMan.SharedVariables[this.shVariableList.Name]; } else { this.cmdMan.SharedVariables.Add(shVariableList); } this.shVariableList.Subscribe(SharedVariableReportType.Notify, SharedVariableSubscriptionType.WriteAny); this.shVariableList.WriteNotification += new SharedVariableSubscriptionReportEventHadler <string>(shVariableList_WriteNotification); SubscribeToAll(); this.status = InspectorStatus.Idle; OnStatusChanged(); this.CommandManager.Ready = true; }
public void Start() { if (cmdMan.IsRunning) return; this.status = InspectorStatus.Starting; OnStatusChanged(); subscribedVariables.Clear(); cmdMan.Start(); }
private void cnnMan_ClientDisconnected(System.Net.EndPoint ep) { SetupSharedVariables(); this.status = InspectorStatus.WaitingForConnection; OnStatusChanged(); }
private void cnnMan_ClientConnected(System.Net.Sockets.Socket s) { this.status = InspectorStatus.LoadingSharedVariables; OnStatusChanged(); }
private void cmdMan_Stopped(CommandManager commandManager) { this.status = InspectorStatus.Stopped; OnStatusChanged(); }
private void cmdMan_Started(CommandManager commandManager) { this.status = InspectorStatus.WaitingForConnection; OnStatusChanged(); }
private void cmdMan_SharedVariablesLoaded(CommandManager cmdMan) { if (this.cmdMan.SharedVariables.Contains(this.shVariableList.Name)) this.shVariableList = (StringSharedVariable)this.cmdMan.SharedVariables[this.shVariableList.Name]; else this.cmdMan.SharedVariables.Add(shVariableList); this.shVariableList.Subscribe(SharedVariableReportType.Notify, SharedVariableSubscriptionType.WriteAny); this.shVariableList.WriteNotification += new SharedVariableSubscriptionReportEventHadler<string>(shVariableList_WriteNotification); SubscribeToAll(); this.status = InspectorStatus.Idle; OnStatusChanged(); this.CommandManager.Ready = true; }
private void cnnMan_ClientConnected(System.Net.Sockets.Socket s) { this.status = InspectorStatus.LoadingSharedVariables; OnStatusChanged(); }
private void cnnMan_ClientDisconnected(System.Net.EndPoint ep) { SetupSharedVariables(); this.status = InspectorStatus.WaitingForConnection; OnStatusChanged(); }
private void cmdMan_Started(CommandManager commandManager) { this.status = InspectorStatus.WaitingForConnection; OnStatusChanged(); }
private void cmdMan_Stopped(CommandManager commandManager) { this.status = InspectorStatus.Stopped; OnStatusChanged(); }