public ForgotPassword() { InitializeComponent(); //Create an instance of Data Context using the specified path dataContext = new reservioDataContext(connectionPath); }
public RegistrationPage() { InitializeComponent(); //Create an instance of Data Context using the specified path dc = new reservioDataContext(connectionPath); registrations = dc.Registrations.ToList(); }
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(); }
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); }
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); }
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); }
public loginPage() { InitializeComponent(); myContext = new reservioDataContext(connectionString); allUsers = myContext.Registrations.ToList(); }
public registrationPage() { InitializeComponent(); dc = new reservioDataContext(connectionString); }