コード例 #1
0
        public MainWindow()
        {
            InitializeComponent();
            DbCategoryAction dbCategoryAction = new DbCategoryAction(RefreshCategories);

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

            dbCategoryAction.BeginInvoke(null, null);
            nameTextBox.Text = nameTextContains;
        }
コード例 #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);
            }
        }