private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { edge.SetColor(Brushes.Black); edge.SetWeight(weight); mGraph.DrawGraph(); mGraph.printMatrixs(); }
public InputWeight(MainGraph mG, Point cl, Edge ed) { InitializeComponent(); mGraph = mG; click = cl; edge = ed; weight = edge.GetWeight(); ed.SetColor(Brushes.Red); mG.DrawGraph(); }
private void changeOfState(object sender, System.Windows.RoutedEventArgs e) { mG.RemoveRepeatingEdge((bool)btnOrient.IsChecked); mG.DrawGraph(); mG.printMatrixs(); }
private void ClearGraph(object sender, EventArgs e) { mG.DrawGraph(); }