protected virtual void OnDebugServiceDisconnected(object sender, SledDebugServiceEventArgs e) { // Clear GUI Editor.View = null; CleanupCollection(); LookingUp = false; ListInsert.Clear(); ListNameInsert.Clear(); ListNameInsertDict.Clear(); }
protected virtual void OnDebugServiceUpdateBegin(object sender, SledDebugServiceBreakpointEventArgs e) { if (Collection.Count > 0) { Collection[0].ValidationBeginning(); } // Save while items still in collection & on GUI if (Collection.Count > 0) { Collection[0].SaveExpandedStates(); } Editor.SaveState(); // Clear GUI Editor.View = null; // Clear out all items for (var i = 0; i < Collection.Count; i++) { Collection[i].Variables.Clear(); if (i > 0) { Collection[i].ResetExpandedStates(); } } if (Collection.Count > 0) { Editor.View = Collection[0]; } // Reset ListInsert.Clear(); ListNameInsert.Clear(); ListNameInsertDict.Clear(); }