Exemple #1
0
        public override async void ViewDidLoad()
        {
            base.ViewDidLoad();

            screenBounds = UIScreen.MainScreen.Bounds;

            viewSource = new UploadViewSource(
                (await Storage.GetDatabaseManager()).GetUploadQueue().ToList());

            TableView.Source   = viewSource;
            TableView.Delegate = new ClickableTableDelegate((index) =>
            {
                AppUtils.ShowThreeChoiceDialog(this,
                                               "Pending Upload",
                                               "What would you like to do with these files?",
                                               "Upload to Server",
                                               CheckCanUpload,
                                               "Delete files",
                                               CheckShouldDelete,
                                               "Cancel",
                                               null,
                                               index);
            });
            TableView.RowHeight = 110;

            UploadAllButton.TouchUpInside += UploadAllButton_TouchUpInside;
        }