private void btnNewIngredient_Click(object sender, RoutedEventArgs e) { //Switcher.Switch(new NewIngritiant()); NewIngritiant newRec = new NewIngritiant(); newRec.ShowDialog(); }
private void NewIngredient_Click(object sender, RoutedEventArgs e) { int categoryIndex = nameComboBox.SelectedIndex; NewIngritiant newIng = new NewIngritiant(categoryIndex); newIng.Show(); this.Close(); }
private void btnNewIngredient_Click(object sender, RoutedEventArgs e) { NewIngritiant win = new NewIngritiant(); win.ShowDialog(); WpfApplication1.FoodProjectDataSet foodProjectDataSet = ((WpfApplication1.FoodProjectDataSet)(this.FindResource("foodProjectDataSet"))); WpfApplication1.FoodProjectDataSetTableAdapters.IngredientTableAdapter foodProjectDataSetIngredientTableAdapter = new WpfApplication1.FoodProjectDataSetTableAdapters.IngredientTableAdapter(); foodProjectDataSetIngredientTableAdapter.Fill(foodProjectDataSet.Ingredient); //async this.ShowMessageAsync("This is the title", "Some message");//Virkar ekki. }
private void btnNewIngredient_Click(object sender, RoutedEventArgs e) { NewIngritiant newIng = new NewIngritiant(); newIng.ShowDialog(); }