Example #1
0
        public MainWindow()
        {
            InitializeComponent();
            DbCategoryAction dbCategoryAction = new DbCategoryAction(RefreshCategories);

            dbCategoryAction.BeginInvoke(null, null);
        }
Example #2
0
        public ProductForm()
        {
            InitializeComponent();
            DbCategoryAction dbCategoryAction = new DbCategoryAction(RefreshCategories);

            dbCategoryAction.BeginInvoke(null, null);
            nameTextBox.Text = nameTextContains;
        }
Example #3
0
        private void Refresh(object sender, RoutedEventArgs e)
        {
            DbCategoryAction dbCategoryAction = new DbCategoryAction(RefreshCategories);

            dbCategoryAction.BeginInvoke(null, null);
            if (categoriesComboBox.SelectedItem != null)
            {
                DbProductAction dbProductAction = new DbProductAction(RefreshProducts);
                dbProductAction.BeginInvoke((Category)categoriesComboBox.SelectedItem, null, null);
            }
        }