Beispiel #1
0
        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;
            }
        }
Beispiel #2
0
 private void OnDestroy()
 {
     if (instance == this)
     {
         instance = null;
     }
 }
Beispiel #3
0
 private void OnTriggerEnter(Collider other)
 {
     if (!sent && other.tag == "Player")
     {
         TextApp.RecieveMessage(from, body);
         sent = true;
     }
 }
Beispiel #4
0
 private void Start()
 {
     if (instance == null)
     {
         instance      = this;
         flashlightApp = FindObjectOfType <FlashlightApp>();
         eyes          = FindObjectOfType <Eyes>();
     }
     else
     {
         Destroy(gameObject);
     }
 }