async void OnItemUpdated(object sender, AccountObject args)
        {
            await Client.UpdateAsync(args);

            LoadAccounts();
            NavigationController.PopViewControllerAnimated(true);
        }
Пример #2
0
		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);
        }
Пример #5
0
 public void SetDetailItem(AccountObject newDetailItem)
 {
     if (detailItem == newDetailItem)
     {
         return;
     }
     detailItem = newDetailItem;
     ConfigureView(detailItem);
 }
Пример #6
0
		void ConfigureView (AccountObject target)
		{
			if (TableView == null)
				return;

			if (TableView.Source == null)
				TableView.Source = source = new DetailSource (this);

			source.Data = target;
		}
Пример #7
0
		async void OnItemUpdated (object sender, AccountObject args)
		{
			await Client.UpdateAsync (args);
			LoadAccounts ();
#if __UNIFIED__
			NavigationController.PopViewController (true);
#else
			NavigationController.PopViewControllerAnimated (true);
#endif
		}
Пример #8
0
        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;
			});
		}
Пример #11
0
        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);
		}