Esempio n. 1
0
        public Dashboard()
        {
            InitializeComponent();

            currentUser = (Users)Application.Current.Properties["user"];

            routesList   = new List <Routes>();
            routeManager = new RouteManager();

            reservationsList   = new List <Reservations>();
            reservationManager = new ReservationsManager();


            routesListView.ItemTemplate = new DataTemplate(typeof(RoutesCell));

            routesListView.ItemTapped += RoutesListView_ItemTapped;

            routesListView.Refreshing += RoutesListView_Refreshing;

            reservationsButton = new ToolbarItem
            {
                Name     = "Reservations",
                Command  = new Command(this.Reservations),
                Order    = ToolbarItemOrder.Primary,
                Priority = 3
            };
        }
        public RoutesDetail(Routes route)
        {
            InitializeComponent();
            this.route = route;

            userRoute = new Users
            {
                ID = route.ID_User
            };

            usersManager        = new UsersManager();
            reservationsManager = new ReservationsManager();
            currentUser         = (Users)Application.Current.Properties["user"];

            this.LoadReservation();
            this.LoadData();
        }
        public ReservationsView()
        {
            InitializeComponent();

            currentUser = (Users)Application.Current.Properties["user"];

            routesList   = new List <Routes>();
            routeManager = new RouteManager();

            reservationsList   = new List <Reservations>();
            reservationManager = new ReservationsManager();



            routesListView.ItemTemplate = new DataTemplate(typeof(RoutesCell));

            routesListView.ItemTapped += RoutesListView_ItemTapped;

            routesListView.Refreshing += RoutesListView_Refreshing;
        }
        public MyRoutesDetail(Routes route)
        {
            this.route          = route;
            usersList           = new List <Users>();
            currentUser         = (Users)Application.Current.Properties["user"];
            reservationsManager = new ReservationsManager();
            routeManager        = new RouteManager();
            reservationResult   = new List <Reservations>();
            InitializeComponent();

            this.IsBusy = true;
            userRoute   = new Users
            {
                ID = this.route.ID_User
            };

            usersManager = new UsersManager();

            this.LoadData();
        }