コード例 #1
0
        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));
        }
コード例 #2
0
        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();
        }
コード例 #3
0
        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();
        }
コード例 #4
0
        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));
        }