public override void Initialize() { pCount = 0; sCount = 0; cCount = 0; GetSegmentsFromUKS(); ModuleUKSN UKSn = (ModuleUKSN)FindModuleByType(typeof(ModuleUKSN)); if (UKSn == null) { return; } while (UKSSegments.Count > 0) { UKSn.DeleteThing(UKSSegments[0]); } while (UKSPoints.Count > 0) { UKSn.DeleteThing(UKSPoints[0]); } na.GetNeuronAt(0, 0).Label = "New"; na.GetNeuronAt(1, 0).Label = "Change"; AddLabel("Obstacle"); UpdateDialog(); }