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(); } }