コード例 #1
0
        public ListerControler(MainWindow mainWindow, LocationListerWindow listerWindow, LocationTabControler locationTabControler) : base(mainWindow)
        {
            AllDisplayItems    = new ObservableCollection <LocationListerDisplayItem>();
            CurrentDisplayItem = new LocationListerDisplayItem();

            _locationTabControler = locationTabControler;
            _listerWindow         = listerWindow;

            _listerWindow.LocationListView.ItemsSource = AllDisplayItems;
            _listerWindow.PhotoPlaceGrid.DataContext   = CurrentDisplayItem;

            ReadData();
        }
コード例 #2
0
        public LocationTabControler(MainWindowControler mainControler, MainWindow window) : base(window, mainControler)
        {
            DisplayItem = new LocationDisplayItem();

            Window.LocationContentGrid.DataContext  = DisplayItem;
            Window.ShootingLocationControl.Leaving += ShootingLocationNameControl_Leaving;
            Window.ParkingLocationControl.Leaving  += ParkingLocationControl_Leaving;

            RefreshShootingLocationsFromDB();
            RefreshParkingLocationsFromDB();

            _listerWindow = new LocationListerWindow(base.Window, this);

            _currentChangeMode = E_ChangeMode.no_change;
        }