Exemplo n.º 1
0
        private async Task AddFacebook()
        {
            var newVM      = new FacebookMenuItemViewModel(OnListItemSelected);
            var existingVM = await TryAdd(newVM);

            var exists = await _facebookHelper.AccountExists();

            existingVM.MenuItemType = exists ? MenuItemType.Added : MenuItemType.Add;
        }
Exemplo n.º 2
0
		private async Task AddFacebook()
		{
			var newVM = new FacebookMenuItemViewModel (OnListItemSelected);
			var existingVM = await TryAdd (newVM);
			var exists = await _facebookHelper.AccountExists ();

			existingVM.MenuItemType = exists ? MenuItemType.Added : MenuItemType.Add;
		}