private void btnAllRecipes_Click(object sender, RoutedEventArgs e) { ViewAllRecipes var = new ViewAllRecipes(); var.Show(); this.Close(); }
private void btnEdit_Click(object sender, RoutedEventArgs e) { int rid = (int)App.Current.Properties["RecipeID"]; App.Current.Properties["rid"] = rid; EditRecipe win = new EditRecipe(); win.ShowDialog(); UpdateWindow(); isDeleted = (bool)App.Current.Properties["isDeleted"]; if (isDeleted == true) { ViewAllRecipes winvar = new ViewAllRecipes(); closeWindowTimer(); winvar.Show(); //this.Close(); } }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.ViewAllRecp = ((WpfApplication1.ViewAllRecipes)(target)); #line 13 "..\..\ViewAllRecipes.xaml" this.ViewAllRecp.Loaded += new System.Windows.RoutedEventHandler(this.ViewAllRecp_Loaded); #line default #line hidden return; case 2: this.SideNav = ((System.Windows.Controls.Grid)(target)); return; case 3: this.btnHome = ((System.Windows.Controls.Button)(target)); #line 105 "..\..\ViewAllRecipes.xaml" this.btnHome.Click += new System.Windows.RoutedEventHandler(this.btnHome_Click); #line default #line hidden return; case 4: this.btnAllRecipes = ((System.Windows.Controls.Button)(target)); return; case 5: this.btnNewRecipe = ((System.Windows.Controls.Button)(target)); #line 109 "..\..\ViewAllRecipes.xaml" this.btnNewRecipe.Click += new System.Windows.RoutedEventHandler(this.btnNewRecipe_Click); #line default #line hidden return; case 6: this.btnNewCuisine = ((System.Windows.Controls.Button)(target)); #line 110 "..\..\ViewAllRecipes.xaml" this.btnNewCuisine.Click += new System.Windows.RoutedEventHandler(this.btnNewCuisine_Click); #line default #line hidden return; case 7: this.btnNewIngredient = ((System.Windows.Controls.Button)(target)); #line 111 "..\..\ViewAllRecipes.xaml" this.btnNewIngredient.Click += new System.Windows.RoutedEventHandler(this.btnNewIngredient_Click); #line default #line hidden return; case 8: this.btnBrowseRecipe = ((System.Windows.Controls.Button)(target)); #line 116 "..\..\ViewAllRecipes.xaml" this.btnBrowseRecipe.Click += new System.Windows.RoutedEventHandler(this.btnBrowseRecipe_Click); #line default #line hidden return; case 9: this.btnBrowseCuisine = ((System.Windows.Controls.Button)(target)); #line 117 "..\..\ViewAllRecipes.xaml" this.btnBrowseCuisine.Click += new System.Windows.RoutedEventHandler(this.btnBrowseCuisine_Click); #line default #line hidden return; case 10: this.btnBrowseIngredient = ((System.Windows.Controls.Button)(target)); #line 118 "..\..\ViewAllRecipes.xaml" this.btnBrowseIngredient.Click += new System.Windows.RoutedEventHandler(this.btnBrowseIngredient_Click); #line default #line hidden return; case 11: this.FilterSection = ((System.Windows.Controls.Grid)(target)); return; case 12: this.lala = ((System.Windows.Media.Animation.Storyboard)(target)); return; case 13: #line 147 "..\..\ViewAllRecipes.xaml" ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.btnAllRecipes_Click); #line default #line hidden return; case 14: this.cuisineComboBox = ((System.Windows.Controls.ComboBox)(target)); #line 148 "..\..\ViewAllRecipes.xaml" this.cuisineComboBox.DropDownClosed += new System.EventHandler(this.cuisineComboBox_DropDownClosed); #line default #line hidden return; case 15: this.btnSortAZ = ((System.Windows.Controls.Button)(target)); #line 150 "..\..\ViewAllRecipes.xaml" this.btnSortAZ.Click += new System.Windows.RoutedEventHandler(this.btnSortAZ_Click); #line default #line hidden return; case 16: this.btnSortByRating = ((System.Windows.Controls.Button)(target)); #line 151 "..\..\ViewAllRecipes.xaml" this.btnSortByRating.Click += new System.Windows.RoutedEventHandler(this.btnSortByRating_Click); #line default #line hidden return; case 17: this.txtNameSEARCH = ((System.Windows.Controls.TextBox)(target)); #line 153 "..\..\ViewAllRecipes.xaml" this.txtNameSEARCH.SelectionChanged += new System.Windows.RoutedEventHandler(this.TextBox_SelectionChanged); #line default #line hidden return; case 18: this.AllRecipesGrid = ((System.Windows.Controls.Grid)(target)); return; case 19: this.RecipeScrollViewer = ((System.Windows.Controls.ScrollViewer)(target)); #line 160 "..\..\ViewAllRecipes.xaml" this.RecipeScrollViewer.PreviewMouseWheel += new System.Windows.Input.MouseWheelEventHandler(this.RecipeScrollViewer_PreviewMouseWheel); #line default #line hidden return; case 20: this.RecipeView = ((System.Windows.Controls.ListBox)(target)); #line 162 "..\..\ViewAllRecipes.xaml" this.RecipeView.MouseDoubleClick += new System.Windows.Input.MouseButtonEventHandler(this.RecipeContents_MouseDoubleClick); #line default #line hidden return; } this._contentLoaded = true; }