public override void DidFinishLaunching (NSNotification notification) { pageDelegate = new PageControllerDelegate (this); PageController.Delegate = pageDelegate; // load all the file card URLs by enumerating through the user's Document folder IEnumerable<NSUrl> fileUrls = GetFileUrls (DocumentDirectory); FileObject[] data = fileUrls.Where (url => !url.IsDir ()).Select (url => new FileObject (url)).ToArray (); // set the first card in our list if (data.Length > 0) { PageController.ArrangedObjects = data; TableView.SelectRows (NSIndexSet.FromIndex (0), false); } }
public override void DidFinishLaunching(NSNotification notification) { pageDelegate = new PageControllerDelegate(this); PageController.Delegate = pageDelegate; // load all the file card URLs by enumerating through the user's Document folder IEnumerable <NSUrl> fileUrls = GetFileUrls(DocumentDirectory); FileObject[] data = fileUrls.Where(url => !url.IsDir()).Select(url => new FileObject(url)).ToArray(); // set the first card in our list if (data.Length > 0) { PageController.ArrangedObjects = data; TableView.SelectRows(NSIndexSet.FromIndex(0), false); } }