public SystemEditor(NSHG.Network network, NSHG.System s, MainWindow parent) { InitializeComponent(); sys = s; this.network = network; this.parent = parent; UpdateView(); }
public Editor(NSHG.Network network, NSHG.System s, MainWindow parent) { InitializeComponent(); switch (s.GetType().ToString()) { case "NSHG.System": Frame.Content = new SystemEditor(network, s, parent); break; case "NSHG.Router": Frame.Content = new SystemEditor(network, s, parent); break; default: Frame.Content = new Label() { Content = "Error Reading System Type" }; break; } }