public void BackToFamily()
 {
     CurrentView = new FamilyViewModel(this);
 }
        public void SetCheckInType(CheckInType type)
        {
            try
            {
                switch (type)
                {
                    case CheckInType.Family:
                        FamilyDatabase = new FamilyDatabase();
                        CurrentView = new FamilyViewModel(this);
                        break;

                    case CheckInType.Pilot:
                        PilotDatabase = new PilotDatabase();
                        CurrentView = new PilotViewModel(this);
                        break;
                }
            }
            catch (Exception e)
            {
                //TODO: We need to give the user a warning that the connection failed.
                Console.WriteLine(@"No connection...\n\n" + e.Message);
            }
        }