Пример #1
0
 protected override Church Parse()
 {
     return(new Church
     {
         Id = ToInt(SimbahanID),
         StreetNumber = ToInt(StreetNo),
         StreetName = StreetName.ToString(),
         Barangay = Barangay.ToString(),
         StateProvince = StateOrProvince.ToString(),
         City = City.ToString(),
         ZipCode = ZipCode.ToString(),
         CompleteAddress = CompleteAddress.ToString(),
         Diocese = Diocese.ToString(),
         Parish = Parish.ToString(),
         Priest = ParishPriest.ToString(),
         Vicariate = Vicariate.ToString(),
         DateEstablished = DateEstablished.ToString(),
         LastUpdate = ToDateTime(LastUpdate),
         FeastDay = FeastDay.ToString(),
         ContactNo = ContactNo.ToString(),
         Latitude = ToDouble(Latitude),
         Longitude = ToDouble(Longitude),
         HasAdorationChapel = ToBoolean(HasAdorationChapel),
         ChurchHistory = ChurchHistory.ToString(),
         OfficeHours = OfficeHours.ToString(),
         ChurchTypeId = ToInt(ChurchTypeID),
         Website = Website.ToString(),
         EmailAddress = EmailAddress.ToString(),
         DevotionSchedule = DevotionSchedule.ToString(),
         LocationId = ToInt(LocationID),
         ChurchCode = ChurchCode.ToString()
     });
 }
 protected override Organization Parse()
 {
     return(new Organization
     {
         Id = ToInt(OrganizationID),
         Name = OrganizationName.ToString(),
         About = About.ToString(),
         LastUpdate = ToDateTime(LastUpdate),
         Address = CompleteAddress.ToString(),
         StreetName = StreetName.ToString(),
         StreetNumber = ToInt(StreetNo),
         Barangay = Barangay.ToString(),
         City = CityOrMunicipality.ToString(),
         State = StateOrProvince.ToString(),
         Country = Country.ToString(),
         DateEstablished = DateEstablished.ToString(),
         ParentOrganization = ParentOrganization.ToString(),
         Preacher = FeastBuilderOrPreacher.ToString(),
         Branch = BranchOrLocation.ToString(),
         ContactNumber = ContactNo.ToString(),
         Email = EmailAddress.ToString(),
         Website = Website.ToString(),
         Longitude = (float)Convert.ToDouble(Longitude),
         Latitude = (float)Convert.ToDouble(Latitude),
         RetreatSchedule = RetreatSchedule.ToString(),
         RecollectionSchedule = RecollectionSchedule.ToString(),
         TalkSchedule = TalkSchedule.ToString(),
         CampSchedule = CampSchedule.ToString(),
         VolunteerSchedule = VolunteerSchedule.ToString(),
         OrgMasking = MaskingData.ToString()
     });
 }
Пример #3
0
        public override string ToString()
        {
            string parkString = $"Location: {Location}" +

                                $"\nEstablished: {DateEstablished.ToShortDateString()}" +

                                $"\nArea: {Area} Acres" +

                                $"\nAnnual Visitors: {Visitors}\n" +

                                $"\n{Description}";

            return(parkString);
        }
Пример #4
0
        public async Task CreateCourtInfo()
        {
            if (string.IsNullOrEmpty(CourtName) || string.IsNullOrEmpty(CourtAdress))
            {
                await App._Navigation.DisplayAlert("Alert", "You have been alerted", "OK");

                return;
            }
            var NewCourt = new Court()
            {
                CourtName = CourtName, CourtAdress = CourtAdress, DateEstablished = DateEstablished.ToString(), CourtCountry = CourtCountry, CourtType = CourtType
            };

            Debug.WriteLine("--------------- CreatePlayer ----------- " + NewCourt.CourtName + " " + NewCourt.CourtAdress + " " + NewCourt.DateEstablished + " " + NewCourt.CourtCountry);

            CourtListView.Add(new CreatePlayerPageViewCellViewModel((Court)NewCourt));

            await App.Database.SavePlayer(NewCourt);
        }
Пример #5
0
 // Used in the view park details method. Formats the information to look nice
 public string ToStringLong()
 {
     return($"{ParkName} National Park\nLocation: {Location}\nDate Established: {DateEstablished.ToString("M/d/yyyy")}\nArea: {Area} sq km\nAnnual Visitors: {AnnualVisitors}\n\n{Description}");// + DateEstablished.ToString().PadRight(10) + Area.ToString().PadRight(15) + AnnualVisitors.ToString().PadRight(10) + Description.PadRight(15)";
 }