//Add new manufacturer private void AddManBtn_Click(object sender, RoutedEventArgs e) { singleInput manInput = new singleInput(temp); if (manInput.ShowDialog() == true) { man.Add(temp); this.SetComboValues(cat, man); ManCombo.SelectedItem = temp; } }
//Add new categroy private void AddCatBtn_Copy1_Click(object sender, RoutedEventArgs e) { singleInput catInput = new singleInput(temp); if (catInput.ShowDialog() == true) { cat.Add(temp); this.SetComboValues(cat, man); CategoryCombo.SelectedItem = temp; } }