示例#1
0
        public AddCar()
        {
            InitializeComponent();

            currentUser = (Users)Application.Current.Properties["user"];
            manager     = new CarsManager();
        }
示例#2
0
        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;
        }