Ejemplo n.º 1
0
        private bool SetCallTemplate(MessageViewModel message, MessageCall call, string title)
        {
            Visibility = Visibility.Visible;

            HideThumbnail();

            var outgoing = message.IsOutgoing;
            var missed   = call.DiscardReason is CallDiscardReasonMissed || call.DiscardReason is CallDiscardReasonDeclined;

            SetTitle(GetFromLabel(message, title));
            SetService(call.ToOutcomeText(message.IsOutgoing));
            SetMessage(string.Empty);

            return(true);
        }
Ejemplo n.º 2
0
        private bool SetCallTemplate(MessageViewModel message, MessageCall call, string title)
        {
            Visibility = Visibility.Visible;

            if (ThumbRoot != null)
            {
                ThumbRoot.Visibility = Visibility.Collapsed;
            }

            var outgoing = message.IsOutgoing;
            var missed   = call.DiscardReason is CallDiscardReasonMissed || call.DiscardReason is CallDiscardReasonDeclined;

            TitleLabel.Text   = GetFromLabel(message, title);
            ServiceLabel.Text = missed ? (outgoing ? Strings.Resources.CallMessageOutgoingMissed : Strings.Resources.CallMessageIncomingMissed) : (outgoing ? Strings.Resources.CallMessageOutgoing : Strings.Resources.CallMessageIncoming);
            MessageLabel.Text = string.Empty;

            return(true);
        }