示例#1
0
        public void UpdateMessage(MessageViewModel message)
        {
            _message = message;

            var invoice = message.Content as MessageInvoice;

            if (invoice == null || !_templateApplied)
            {
                return;
            }

            Title.Text = invoice.Title;
            TextBlockHelper.SetFormattedText(Description, invoice.Description);

            Photo.Constraint = invoice.Photo;
            Texture.Source   = null;

            Footer.UpdateMessage(message);

            var small = invoice.Photo.GetSmall();

            if (small != null)
            {
                UpdateManager.Subscribe(this, message, small.Photo, ref _thumbnailToken, UpdateFile, true);
                UpdateThumbnail(message, small.Photo);
            }
        }
示例#2
0
        public void UpdateMessage(MessageViewModel message)
        {
            _message = message;

            var invoice = message.Content as MessageInvoice;

            if (invoice == null || !_templateApplied)
            {
                return;
            }

            Title.Text       = invoice.Title;
            Description.Text = invoice.Description;

            Photo.Constraint = invoice.Photo;
            Texture.Source   = null;

            Footer.UpdateMessage(message);

            var small = invoice.Photo.GetSmall();

            if (small != null)
            {
                UpdateThumbnail(message, small.Photo);
            }
        }
        public void UpdateMessage(MessageViewModel message)
        {
            _message = message;

            var invoice = message.Content as MessageInvoice;

            if (invoice == null || !_templateApplied)
            {
                return;
            }

            Title.Text       = invoice.Title;
            Description.Text = invoice.Description;

            Footer.UpdateMessage(message);
        }
示例#4
0
        public void UpdateMessage(MessageViewModel message)
        {
            _message = message;

            var invoice = message.Content as MessageInvoice;

            if (invoice == null || !_templateApplied)
            {
                return;
            }

            Title.Text = invoice.Title;
            TextBlockHelper.SetFormattedText(Description, invoice.Description);

            Footer.UpdateMessage(message);
        }