private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { graphHost = new FigureHost(); exampleCanvas.Children.Clear(); MainWindow mainWindow = (MainWindow)App.Current.MainWindow; mainWindow.Settings.IsEnabled = true; }
private void OK_Click(object sender, RoutedEventArgs e) { graphHost = new FigureHost(); exampleCanvas.Children.Clear(); OptionsWindow.settings.BaseVertex = setNowVertex; OptionsWindow.settings.BaseEdge = setNowEdge; OptionsWindow.settings.ColorEdge = edgeColor; OptionsWindow.settings.ColorInsideVertex = vertexColor; foreach (var vertex in Globals.VertexData) { vertex.Color = OptionsWindow.settings.ColorInsideVertex; } foreach (var edge in Globals.EdgesData) { edge.Color = OptionsWindow.settings.ColorEdge; } Graph_Editor.MainWindow.Instance.Invalidate(); this.Close(); }
private void Exit(object sender, RoutedEventArgs e) { graphHost = new FigureHost(); exampleCanvas.Children.Clear(); this.Close(); }