Example #1
0
        public NotesTask(string storyboardName) : base(storyboardName)
        {
            MainViewController      = new NotesMainUIViewController( );
            MainViewController.Task = this;

            // create the note controller ONCE and let the view controllers grab it as needed.
            // That way, we can hold it in memory and cache notes, rather than always reloading them.
            NoteController      = new NotesViewController( );
            NoteController.Task = this;
        }
            public TableSource(NotesMainUIViewController parent, List <SeriesEntry> series, UIImage imageMainPlaceholder, UIImage imageThumbPlaceholder)
            {
                Parent                = parent;
                SeriesEntries         = series;
                ImageMainPlaceholder  = imageMainPlaceholder;
                ImageThumbPlaceholder = imageThumbPlaceholder;

                // create a dummy cell so we can store the height
                SeriesPrimaryCell cell = new SeriesPrimaryCell(parent.View.Frame, UITableViewCellStyle.Default, SeriesCell.Identifier, ImageMainPlaceholder);

                PendingPrimaryCellHeight = cell.BottomBanner.Frame.Bottom;
            }
            public TableSource (NotesMainUIViewController parent, List<SeriesEntry> series, UIImage imageMainPlaceholder, UIImage imageThumbPlaceholder )
            {
                Parent = parent;
                SeriesEntries = series;
                ImageMainPlaceholder = imageMainPlaceholder;
                ImageThumbPlaceholder = imageThumbPlaceholder;

                // create a dummy cell so we can store the height
                SeriesPrimaryCell cell = new SeriesPrimaryCell( parent.View.Frame, UITableViewCellStyle.Default, SeriesCell.Identifier, ImageMainPlaceholder );
                PendingPrimaryCellHeight = cell.BottomBanner.Frame.Bottom;
            }