private void LoadSecondStation() { stationElements_1_ = StationElements.Open("StationElements1.xml"); stationTopoloty_1_ = new StationTopoloty(); stationTopoloty_1_.Open("StationTopoloty1.xml", stationElements_1_.Elements); foreach (var item in stationElements_1_.Elements) { item.Top += 45; item.Left += 2000; } stationElements_1_.AddElementsToCanvas(MainCanvas); ConnectNodes(stationTopoloty_, stationTopoloty_1_, "201G", "301G"); }
private void LoadGraphicElements(string path) { stationElements_ = StationElements.Open(path); stationElements_.AddElementsToCanvas(MainCanvas); }