public void Recipes_OnItemClick(int position) { //gets the id of the recipe. int id = (Constants.Conn.Table <Recipe>().Skip(position).Take(1)).First().id; view.Navigate(Constants.SHOW_RECIPE, new Intent().PutExtra(Constants.RECIPE_ID, id)); }
public object StartDiscoveryProcess() { /*Enabling Bluetooth the nice way*/ if (!thisPhone.IsEnabled) { string enableBT = BluetoothAdapter.ActionRequestEnable; view.Navigate(Constants.ENABLE_BLUETOOTH, new Intent(enableBT)); } else if (!IsDiscovering) { thisPhone.StartDiscovery(); } return(true); }
public void MealDay_onClick(string text) { Intent intent = new Intent(); intent.PutExtra("id", mealDays[text].id); view.Navigate(1, intent); }
public void Recipe_onClick(string text) { Intent intent = new Intent(); intent.PutExtra(Constants.RECIPE_ID, recipes[text].id); view.Navigate(1, intent); }
public void mealPlan_OnClick(int position) { view.MakeToast("Navigating to: " + mealPlanList[position], ToastLength.Short); //TODO lav lige noget intents, når enkelt meal day activity er lavet. int id = (Constants.Conn.Get <MealPlan>(position + 1).id); view.Navigate(1, new Intent().PutExtra("mealPlanId", id)); }
public void NavToDeviceList() { view.Navigate(Constants.CONN_REQUEST, new Intent()); }
public void Share_Click() { view.Navigate(Constants.SHARE, new Intent().PutExtra(Constants.RECIPE_ID, CurrentRecipe.id).PutExtra("type", "recipe")); }