public SettingTabControler(MainWindowControler mainControler, MainWindow window) : base(window, mainControler) { DisplayItem = new SettingsDisplayItem(); Window.Settings_MaintainLocationGrid.DataContext = DisplayItem; Window.Settings_SettingsGrid.DataContext = DisplayItem; }
public MainWindow() { InitializeComponent(); LocationViewModel = new LocationDisplayItem(); SetDataContext(); // call after initilaze component _controler = new MainWindowControler(this); }
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; }
public TabControlerBase(MainWindow window, MainWindowControler mainControler) : base(window) { MainControler = mainControler; // register events CountryControl.Leaving += CountryControl_Leaving; AreaControl.Leaving += AreaControl_Leaving; AreaControl.LeavingViaShift += AreaControl_Leaving_LeavingViaShift; SubAreaControl.Leaving += SubAreaControl_Leaving; SubAreaControl.LeavingViaShift += SubAreaControl_LeavingViaShift; SubjectLocationControl.Leaving += SubjectLocationControl_Leaving; SubjectLocationControl.LeavingViaShift += SubjectLocationControl_LeavingViaShift; _currentMode = E_Mode.add; }