async void OnItemUpdated(object sender, AccountObject args) { await Client.UpdateAsync(args); LoadAccounts(); NavigationController.PopViewControllerAnimated(true); }
public void SetDetailItem (AccountObject newDetailItem) { if (detailItem == newDetailItem) return; detailItem = newDetailItem; ConfigureView (detailItem); }
async void OnItemAdded (object sender, AccountObject account) { // Create salesforce creation request from generated account object string newId = await Client.CreateAsync (account); account.Id = newId; FinishAddAccount (account); }
async void OnItemAdded(object sender, AccountObject account) { // Create salesforce creation request from generated account object string newId = await Client.CreateAsync(account); account.Id = newId; FinishAddAccount(account); }
public void SetDetailItem(AccountObject newDetailItem) { if (detailItem == newDetailItem) { return; } detailItem = newDetailItem; ConfigureView(detailItem); }
void ConfigureView (AccountObject target) { if (TableView == null) return; if (TableView.Source == null) TableView.Source = source = new DetailSource (this); source.Data = target; }
async void OnItemUpdated (object sender, AccountObject args) { await Client.UpdateAsync (args); LoadAccounts (); #if __UNIFIED__ NavigationController.PopViewController (true); #else NavigationController.PopViewControllerAnimated (true); #endif }
async void OnItemUpdated(object sender, AccountObject args) { await Client.UpdateAsync(args); LoadAccounts(); #if __UNIFIED__ NavigationController.PopViewController(true); #else NavigationController.PopViewControllerAnimated(true); #endif }
void FinishAddAccount(AccountObject account) { // Reset the form for the next use. AddAccountController.DismissViewController(true, () => { // Insert our newly created object into the table DataSource.Objects.Add(account); TableView.ReloadData(); AddAccountController.Dispose(); AddAccountController = null; }); }
void FinishAddAccount (AccountObject account) { // Reset the form for the next use. AddAccountController.DismissViewController(true, ()=> { // Insert our newly created object into the table DataSource.Objects.Add(account); TableView.ReloadData(); AddAccountController.Dispose(); AddAccountController = null; }); }
void ConfigureView(AccountObject target) { if (TableView == null) { return; } if (TableView.Source == null) { TableView.Source = source = new DetailSource(this); } source.Data = target; }
async void OnItemUpdated (object sender, AccountObject args) { await Client.UpdateAsync (args); LoadAccounts (); NavigationController.PopViewControllerAnimated (true); }