public MainWindow()
        {
            InitializeComponent();

            display = new DisplayVM();
            outPan  = new OutputPanelVM();

            outManager = new OutputManager();
            fileVM_    = new FileModel(outManager);
            sManager   = new SimManager(outManager);
            outManager.link(display, fileVM_, outPan, sManager);

            elemDef = new ElemDefVM(sManager, outManager);
            envDef  = new EnvironmentDefVM(sManager);
            simSett = new SimSettingsVM(sManager);

            this.ElemDefTools.DataContext = elemDef;
            this.EnvDefTools.DataContext  = envDef;
            this.SimSetTools.DataContext  = simSett;
            this.SceneDisplay.DataContext = display;
            this.OutputPanel.DataContext  = outPan;

            Loaded         += MyWindow_Loaded;
            SizeChanged    += OnResize;
            dispTimer.Tick += onDispStep;
        }
        public MainWindow()
        {
            InitializeComponent();

            display = new DisplayVM();
            outPan = new OutputPanelVM();

            outManager = new OutputManager();
            fileVM_ = new FileModel(outManager);
            sManager = new SimManager(outManager);
            outManager.link(display, fileVM_, outPan, sManager);

            elemDef = new ElemDefVM(sManager, outManager);
            envDef = new EnvironmentDefVM(sManager);
            simSett = new SimSettingsVM(sManager);

            this.ElemDefTools.DataContext = elemDef;
            this.EnvDefTools.DataContext = envDef;
            this.SimSetTools.DataContext = simSett;
            this.SceneDisplay.DataContext = display;
            this.OutputPanel.DataContext = outPan;

            Loaded += MyWindow_Loaded;
            SizeChanged += OnResize;
            dispTimer.Tick += onDispStep;
        }