Exemple #1
0
 public override void ViewDidLoad()
 {
     base.ViewDidLoad();
     _timesheet = Hub.GetEx <TimesheetResource> ("timesheet");
     _vm        = new TimesheetViewModel();
     _vm.InitialiseWith(_timesheet);
 }
Exemple #2
0
        public Task DisplayViewerFor <TResource>(TResource resource)
        {
            if (resource is TimesheetResource)
            {
                var vm = new TimesheetViewModel();
                vm.InitialiseWith(resource as TimesheetResource);
                Hub.PutEx(typeof(EditTimesheetActivity), vm);
                _context.StartActivity(typeof(EditTimesheetActivity));
            }

            var t = new TaskCompletionSource <object>();

            t.SetResult(null);
            return(t.Task);
        }