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(); } }
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; }
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; }
public GraphWindow(PersonsGraph graph) : this() { this.graph = graph; }