Exemplo n.º 1
0
        public ForgotPassword()
        {
            InitializeComponent();

            //Create an instance of Data Context using the specified path
            dataContext = new reservioDataContext(connectionPath);
        }
Exemplo n.º 2
0
        public RegistrationPage()
        {
            InitializeComponent();

            //Create an instance of Data Context using the specified path
            dc = new reservioDataContext(connectionPath);

            registrations = dc.Registrations.ToList();
        }
Exemplo n.º 3
0
        public Login()
        {
            InitializeComponent();

            //Create an instance of Data Context using the specified path
            myContext = new reservioDataContext(connectionPath);

            //Fetch the registered members from the DB and assign it to the list
            allUsers = myContext.Registrations.ToList();
        }
Exemplo n.º 4
0
        public ViewReservations()
        {
            InitializeComponent();

            //Create an instance of Data Context using the specified path
            dataContext = new reservioDataContext(connectionPath);

            //Assign the data from DB to the list
            reservations = dataContext.Bookings.ToList();

            //Display the Reservations in the datagrid
            DisplayReservations(reservations);
        }
Exemplo n.º 5
0
        public Reservation()
        {
            InitializeComponent();

            //Create an instance of Data Context using the specified path
            dbContext = new reservioDataContext(connectionPath);

            //Assign the data from DB to the list
            bookings = dbContext.Bookings.ToList();

            //Prevent past date selection
            SearchDate.DisplayDateStart = DateTime.Now;
            SearchDate.DisplayDateEnd   = DateTime.Now.AddDays(7);
        }
Exemplo n.º 6
0
        public HomePage()
        {
            InitializeComponent();



            dbContext = new reservioDataContext(connectionPath);
            bookings  = dbContext.Bookings.ToList();



            //Prevent past date selection
            SearchDate.DisplayDateStart = DateTime.Now;
            SearchDate.DisplayDateEnd   = DateTime.Now.AddDays(7);
        }
Exemplo n.º 7
0
 public loginPage()
 {
     InitializeComponent();
     myContext = new reservioDataContext(connectionString);
     allUsers  = myContext.Registrations.ToList();
 }
Exemplo n.º 8
0
 public registrationPage()
 {
     InitializeComponent();
     dc = new reservioDataContext(connectionString);
 }