// Shared initialization code
        void Initialize()
        {
            var sysFont = NSFont.SystemFontOfSize(NSFont.SystemFontSize);

            resources = new Drawing.Resources(sysFont.FontName,
                                              (float)NSFont.SystemFontSize,
                                              bookmarkIcon: new LJD.Image(NSImage.ImageNamed("TimelineBookmark.png")));
            legendDataSource = new CollectionViewDataSource()
            {
                Resources = resources
            };
            toastNotifications = new ToastNotificationsViewAdapter();
        }
Example #2
0
 public CollectionViewDelegate(CollectionViewDataSource dataSource, Drawing.Resources resources)
 {
     this.dataSource = dataSource;
     this.resources  = resources;
 }