protected override async void OnBindingContextChanged() { base.OnBindingContextChanged(); if (BindingContext != null) { Analytics.TrackEvent("Формирование списка заявок у жителя"); FormattedString formatted = new FormattedString(); formatted.Spans.Add(new Span { Text = "№" + Number + " ", TextColor = Color.Black, FontSize = 13 }); formatted.Spans.Add(new Span { Text = "• " + TextApp.Trim(), TextColor = Color.Black, FontAttributes = FontAttributes.Bold, FontSize = 17 }); numberAndDate.FormattedText = formatted; LabelStatus.Text = Status; // LabelText.Text = "• " + TextApp; LabelDate.Text = DateApp; ImageStatus.ReplaceStringMap = new Dictionary <string, string> { { "#000000", $"#{Settings.MobileSettings.color}" } }; ImageStatus.Source = "resource://xamarinJKH.Resources." + Settings.GetStatusIcon(StatusID) + ".svg"; ReadIndicator.IsVisible = !Read && StatusID != 6; } }
private void OnDestroy() { if (instance == this) { instance = null; } }
private void OnTriggerEnter(Collider other) { if (!sent && other.tag == "Player") { TextApp.RecieveMessage(from, body); sent = true; } }
private void Start() { if (instance == null) { instance = this; flashlightApp = FindObjectOfType <FlashlightApp>(); eyes = FindObjectOfType <Eyes>(); } else { Destroy(gameObject); } }