コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: pprintz/p2
        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
        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();
        }