public AddCar() { InitializeComponent(); currentUser = (Users)Application.Current.Properties["user"]; manager = new CarsManager(); }
public AddRoute() { carSelected = false; savePoints = false; carsManager = new CarsManager(); routeManager = new RouteManager(); properties = Application.Current.Properties; currentUser = (Users)Application.Current.Properties["user"]; this.IsBusy = true; InitializeComponent(); departureDatePicker.MinimumDate = DateTime.Now; departureTimePicker.Time = DateTime.Now.TimeOfDay; }