Пример #1
0
        public ForgotPassword()
        {
            InitializeComponent();

            //Create an instance of Data Context using the specified path
            dataContext = new reservioDataContext(connectionPath);
        }
Пример #2
0
        public RegistrationPage()
        {
            InitializeComponent();

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

            registrations = dc.Registrations.ToList();
        }
Пример #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();
        }
Пример #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);
        }
Пример #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);
        }
Пример #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);
        }
Пример #7
0
 public loginPage()
 {
     InitializeComponent();
     myContext = new reservioDataContext(connectionString);
     allUsers  = myContext.Registrations.ToList();
 }
Пример #8
0
 public registrationPage()
 {
     InitializeComponent();
     dc = new reservioDataContext(connectionString);
 }