private void NewButton_Click(object sender, RoutedEventArgs e) { OwnerCombo.SelectedItem = null; StatusDescriptionCombo.SelectedItem = null; ProductTypeCombo.SelectedItem = null; ZoneDescriptionCombo.SelectedItem = null; ProductDescription.Clear(); _mainWindowViewController.NewProduct(); }
private void ClearProductEditSection() { OwnerCombo.SelectedItem = null; StatusDescriptionCombo.SelectedItem = null; ProductTypeCombo.SelectedItem = null; ZoneDescriptionCombo.SelectedItem = null; ProductDescription.Clear(); _mainWindowViewController.NewProduct(); }
private void BtnRefesh_Click(object sender, RoutedEventArgs e) { ProductName.Clear(); ProductPrice.Clear(); ProductDescription.Clear(); ProductDate.Text = null; ProductInitialAmount.Clear(); ProductCapital.Clear(); comboProductTypes.SelectedIndex = -1; BitmapImage image = new BitmapImage(); image.BeginInit(); image.UriSource = new Uri("pack://application:,,/Images/Image.png"); image.EndInit(); imgProduct.Source = image; imgProduct.Tag = null; }