예제 #1
0
 private void button1_Click_2(object sender, RoutedEventArgs e)
 {
     if (PeopleDataGrid.SelectedIndex != -1)
     {
         Person       person = PersonList.GetPersonList().GetPersonsList()[PeopleDataGrid.SelectedIndex];
         PersonsGraph graph  = new PersonsGraph(PersonList.GetPersonList(), RelationsTable.GetTable(), person);
         var          wind   = new GraphWindow(graph);
         wind.ShowDialog();
     }
 }
예제 #2
0
 public DrawPersonGraph(PersonsGraph personsGraph,Canvas canvas,int x=100, int y=100,int cellW=50,int cellH=50,int figureW=30,int figureH=30)
 {
     PersonsGraph = personsGraph;
        curCanvas = canvas;
        X = x;
        Y = y;
        CellHeight = cellH;
        CellWidth = cellW;
        FigureWidth = figureW;
        FigureHeight = figureH;
 }
예제 #3
0
 public DrawPersonGraph(PersonsGraph personsGraph, Canvas canvas, int x = 100, int y = 100, int cellW = 50, int cellH = 50, int figureW = 30, int figureH = 30)
 {
     PersonsGraph = personsGraph;
     curCanvas    = canvas;
     X            = x;
     Y            = y;
     CellHeight   = cellH;
     CellWidth    = cellW;
     FigureWidth  = figureW;
     FigureHeight = figureH;
 }
예제 #4
0
        private void button1_Click_2(object sender, RoutedEventArgs e)
        {
            if (PeopleDataGrid.SelectedIndex != -1)
            {
                Person person = PersonList.GetPersonList().GetPersonsList()[PeopleDataGrid.SelectedIndex];
                PersonsGraph graph = new PersonsGraph(PersonList.GetPersonList(), RelationsTable.GetTable(), person);
                var wind = new GraphWindow(graph);
                wind.ShowDialog();

            }
        }
예제 #5
0
 public GraphWindow(PersonsGraph graph) : this()
 {
     this.graph = graph;
 }
예제 #6
0
 public GraphWindow(PersonsGraph graph)
     : this()
 {
     this.graph = graph;
 }