private void MoveToRecipes() { var recipes = new RecipesView(); recipes.Show(); CloseAction(); }
private void Click() { switch (this.Identity) { case TileIdentity.ScanContent: { FridgeScannerView scanner = new FridgeScannerView(this.Context); this.Context.HostWindow.SetView(scanner); } break; case TileIdentity.ExploreContent: { BrowserView browser = new BrowserView(this.Context); this.Context.HostWindow.SetView(browser); } break; case TileIdentity.Settings: { AccountManagementView account = new AccountManagementView(this.Context); this.Context.HostWindow.SetView(account); } break; case TileIdentity.Recipes: { RecipesView recipe = new RecipesView(this.Context); this.Context.HostWindow.SetView(recipe); } break; default: break; } }