Пример #1
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     edge.SetColor(Brushes.Black);
     edge.SetWeight(weight);
     mGraph.DrawGraph();
     mGraph.printMatrixs();
 }
Пример #2
0
        public InputWeight(MainGraph mG, Point cl, Edge ed)
        {
            InitializeComponent();
            mGraph = mG;
            click  = cl;
            edge   = ed;
            weight = edge.GetWeight();

            ed.SetColor(Brushes.Red);
            mG.DrawGraph();
        }
Пример #3
0
 private void changeOfState(object sender, System.Windows.RoutedEventArgs e)
 {
     mG.RemoveRepeatingEdge((bool)btnOrient.IsChecked);
     mG.DrawGraph();
     mG.printMatrixs();
 }
Пример #4
0
 private void ClearGraph(object sender, EventArgs e)
 {
     mG.DrawGraph();
 }