예제 #1
0
        public MainWindow(UserInterface userInterface) {
            WindowStartupLocation = WindowStartupLocation.CenterScreen;
            InitializeComponent();

            TheUserInterface = userInterface;
            ImportWindow = new NewImportWindow(this);
            ExportWindow = new ExportWindow(this);
            FloorPlanVisualiserControl = new FloorPlanVisualiser(this);
            ControlPanelControl = new ControlPanel(this);
            SimulationControlsControl = new SimulationControls(this);
            ZoomControl = new Zoom(this);
            Closed += OnCloseWindow;
            SetupWindow();
        }
예제 #2
0
파일: App.xaml.cs 프로젝트: pprintz/p2
 private void StartUp(object sender, StartupEventArgs e) {
     IData data = new Data();
     IUserInterface ui = new UserInterface();
     Controller controller = new Controller(data, ui);
     controller.Start();
 }