public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
            {
                MetaData selected = _tvc.DropboxData.Contents[indexPath.Row];

                if (selected != null && selected.Is_Dir)
                {
                    var vc = new DBFileTableViewController();
                    vc.Title = selected.Name;
                    _tvc.NavigationController.PushViewController(vc, true);
                    vc.DisplayContents(selected.Path);
                }
            }
예제 #2
0
        // This method is invoked when the application has loaded its UI and its ready to run
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            _client.LoginAsync(USERNAME,PASSWORD, x => {
                FinishLaunching();
            });

            // Create the main view controller - the 'first' view in the app
            _tvc = new DBFileTableViewController();

            // Create a navigation controller, to which we'll add the view
            navigationController = new UINavigationController();
            navigationController.PushViewController(_tvc, false);
            navigationController.TopViewController.Title ="Dropbox Test";

            // Create the main window and add the navigation controller as a subview
            window = new UIWindow (UIScreen.MainScreen.Bounds);
            window.AddSubview(navigationController.View);
            window.MakeKeyAndVisible ();
            return true;
        }
예제 #3
0
        // This method is invoked when the application has loaded its UI and its ready to run
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            _client.LoginAsync(USERNAME, PASSWORD, x => {
                FinishLaunching();
            });

            // Create the main view controller - the 'first' view in the app
            _tvc = new DBFileTableViewController();

            // Create a navigation controller, to which we'll add the view
            navigationController = new UINavigationController();
            navigationController.PushViewController(_tvc, false);
            navigationController.TopViewController.Title = "Dropbox Test";


            // Create the main window and add the navigation controller as a subview
            window = new UIWindow(UIScreen.MainScreen.Bounds);
            window.AddSubview(navigationController.View);
            window.MakeKeyAndVisible();
            return(true);
        }
 public TableDataSource(DBFileTableViewController tvc)
 {
     _tvc = tvc;
 }
            public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
            {
                MetaData selected = _tvc.DropboxData.Contents[indexPath.Row];

                if(selected != null && selected.Is_Dir)
                {
                    var vc = new DBFileTableViewController();
                    vc.Title = selected.Name;
                    _tvc.NavigationController.PushViewController(vc,true);
                    vc.DisplayContents(selected.Path);
                }
            }
 public TableDelegate(DBFileTableViewController tvc)
 {
     _tvc = tvc;
 }
 public TableDelegate(DBFileTableViewController tvc)
 {
     _tvc = tvc;
 }
 public TableDataSource(DBFileTableViewController tvc)
 {
     _tvc = tvc;
 }