public MainWindow()
 {
     InitializeComponent();
     //creating file reader object and using it's method to read the Database and for file operations
     dbAccess = NHV_DatabaseAccessSingleton.Instance;
     //reading our database and filling in the data to operate on
     dbAccess.readDB_OnStartup();
 }
 //constructor
 public BookingWin()
 {
     InitializeComponent();
     dbAccess = NHV_DatabaseAccessSingleton.Instance;
     this.canvBookingMainWindow.Visibility = Visibility.Visible;
     this.canvNewBooking.Visibility        = Visibility.Hidden;
     //disabling dates in the date picker for new bookings
     this.datePickArrivalCanvas.BlackoutDates.Add(new CalendarDateRange(DateTime.MinValue,
                                                                        DateTime.Now.AddDays(-1)));
     this.datePickDepartureCanvas.BlackoutDates.Add(new CalendarDateRange(DateTime.MinValue, DateTime.Now));
 }
 public CustomerWin()
 {
     InitializeComponent();
     this.Title = "Customer Details";
     dbAccess   = NHV_DatabaseAccessSingleton.Instance;
 }