Esempio n. 1
0
 public SystemEditor(NSHG.Network network, NSHG.System s, MainWindow parent)
 {
     InitializeComponent();
     sys          = s;
     this.network = network;
     this.parent  = parent;
     UpdateView();
 }
Esempio n. 2
0
        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;
            }
        }