Exemple #1
0
            public DataTableViewCell(IntPtr handle) : base(handle)
            {
                ExceptionUtility.Try(() =>
                {
                    this.BackgroundColor = Colors.LightGrayBackground;

                    _nameLabel.SetFontAndColor(NormalFont);

                    _valueLabel.SetFontAndColor(BoldFont);

                    this.ContentView.AddSubviews(_nameLabel, _valueLabel);
                });
            }
Exemple #2
0
        public void SetMessages(IEnumerable <string> messages)
        {
            ExceptionUtility.Try(() =>
            {
                this.Clear();

                if (messages != null)
                {
                    foreach (string msg in messages)
                    {
                        var label  = new AquamonixLabel();
                        label.Text = msg;
                        label.SetFontAndColor(TextFont);

                        this._messageLabels.Add(label);
                        this.AddSubview(label);
                    }
                }
            });
        }