public async Task <SynchedPhysicalContacts> AddContact(PhysicalContacts contact, DateTime date, string Longitude, string Latitude) { var newContact = new SynchedPhysicalContacts { Contacts = contact, DateTime = date, Latitude = Latitude, Longiture = Longitude, StepStatus = Syncfusion.XForms.ProgressBar.StepStatus.InProgress }; PhysicalContactsTrackings.Add(newContact); await Xamarin.Essentials.MainThread.InvokeOnMainThreadAsync(() => { this.OnDataReady(this, new EventArgs()); }); return(newContact); }
internal FormattedString GetSecondaryText(SynchedPhysicalContacts item) { var formatted = new FormattedString(); formatted.Spans.Add(new Span { FontAttributes = FontAttributes.Bold, Text = item.Date }); formatted.Spans.Add(new Span { Text = "\n\r" }); formatted.Spans.Add(new Span { Text = item.Time }); return(formatted); }
internal FormattedString GetPrimaryText(SynchedPhysicalContacts item) { var translatedEnumValue = GetTranslatedEnum(item.Contacts); var formatted = new FormattedString(); formatted.Spans.Add(new Span { Text = translatedNearKeyText }); formatted.Spans.Add(new Span { Text = "\n\r" }); formatted.Spans.Add(new Span { FontAttributes = FontAttributes.Bold, Text = " " + translatedEnumValue }); return(formatted); }