public static void AddGraph(IBidirectionalGraph <object, IEdge <object> > graph, List <double> expectedValues, List <double> actualValues) { if (selfPtr == null) { selfPtr = new VisualizationManager(); } while (selfPtr.graphList == null || selfPtr.expectedGraphOutputDataList == null || selfPtr.actualGraphOutputDataList == null) { Thread.Sleep(1); } selfPtr.graphList.Add(graph); selfPtr.expectedGraphOutputDataList.Add(ConvertDoubleListToPointCollection(expectedValues)); selfPtr.actualGraphOutputDataList.Add(ConvertDoubleListToPointCollection(actualValues)); }
public MainWindow(VisualizationManager visualizationManager) { visualizationManager_ = visualizationManager; graphListRefresher.Elapsed += graphListRefresher_Elapsed; graphListRefresher.Start(); while (visualizationManager.graphList.Count == 0) { System.Threading.Thread.Sleep(1); } Graph = visualizationManager.graphList.First(); InitializeComponent(); this.Show(); }
public static void AddGraph(IBidirectionalGraph<object, IEdge<object>> graph, List<double> expectedValues, List<double> actualValues) { if (selfPtr == null) { selfPtr = new VisualizationManager(); } while (selfPtr.graphList == null || selfPtr.expectedGraphOutputDataList == null || selfPtr.actualGraphOutputDataList == null) { Thread.Sleep(1); } selfPtr.graphList.Add(graph); selfPtr.expectedGraphOutputDataList.Add(ConvertDoubleListToPointCollection(expectedValues)); selfPtr.actualGraphOutputDataList.Add(ConvertDoubleListToPointCollection(actualValues)); }