コード例 #1
0
ファイル: AppDelegate.cs プロジェクト: RangoLee/mac-samples
		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);
			}
		}
コード例 #2
0
ファイル: AppDelegate.cs プロジェクト: chamons/mac-samples-1
        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);
            }
        }