Exemple #1
0
        public static IssueCellView Create()
        {
            var cell  = new IssueCellView();
            var views = NSBundle.MainBundle.LoadNib("IssueCellView", cell, null);

            cell = Runtime.GetNSObject(views.ValueAt(0)) as IssueCellView;

            if (cell == null)
            {
                Console.WriteLine("Null cell!");
            }
            else
            {
                cell.Caption.TextColor = Theme.CurrentTheme.MainTitleColor;
                cell.Number.TextColor  = Theme.CurrentTheme.MainTitleColor;
                cell.AddSubview(new SeperatorIssues {
                    Frame = new CGRect(65f, 5f, 1f, cell.Frame.Height - 10f)
                });
                cell.Image1.Image   = Octicon.Gear.ToImage(12);
                cell.Image2.Image   = Octicon.CommentDiscussion.ToImage(12);
                cell.Image3.Image   = Octicon.Person.ToImage(12);
                cell.Image4.Image   = Octicon.Pencil.ToImage(12);
                cell.SeparatorInset = new UIEdgeInsets(0, 0, 0, 0);
            }

            //Create the icons
            return(cell);
        }
Exemple #2
0
        public static IssueCellView Create()
        {
            var cell = new IssueCellView();
            var views = NSBundle.MainBundle.LoadNib("IssueCellView", cell, null);
            cell = Runtime.GetNSObject( views.ValueAt(0) ) as IssueCellView;

            if (cell == null)
            {
                Console.WriteLine("Null cell!");
            }
            else
            {
                cell.Caption.TextColor = Theme.CurrentTheme.MainTitleColor;
                cell.Number.TextColor = Theme.CurrentTheme.MainTitleColor;
                cell.AddSubview(new SeperatorIssues {Frame = new CGRect(65f, 5f, 1f, cell.Frame.Height - 10f)});
                cell.Image1.Image = Octicon.Gear.ToImage(12);
                cell.Image2.Image = Octicon.CommentDiscussion.ToImage(12);
                cell.Image3.Image = Octicon.Person.ToImage(12);
                cell.Image4.Image = Octicon.Pencil.ToImage(12);
                cell.SeparatorInset = new UIEdgeInsets(0, 0, 0, 0);
            }

            //Create the icons
            return cell;
        }