コード例 #1
0
 private void NewButton_Click(object sender, RoutedEventArgs e)
 {
     OwnerCombo.SelectedItem             = null;
     StatusDescriptionCombo.SelectedItem = null;
     ProductTypeCombo.SelectedItem       = null;
     ZoneDescriptionCombo.SelectedItem   = null;
     ProductDescription.Clear();
     _mainWindowViewController.NewProduct();
 }
コード例 #2
0
 private void ClearProductEditSection()
 {
     OwnerCombo.SelectedItem             = null;
     StatusDescriptionCombo.SelectedItem = null;
     ProductTypeCombo.SelectedItem       = null;
     ZoneDescriptionCombo.SelectedItem   = null;
     ProductDescription.Clear();
     _mainWindowViewController.NewProduct();
 }
コード例 #3
0
        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;
        }