コード例 #1
0
 internal Controller(CategoriesAndTypesWindow parent, object categories)
 {
     _parent             = parent;
     _comboBoxCategories = _parent.comboBoxCategories;
     _comboBoxTypes      = _parent.comboBoxTypes;
     _categories         = (List <CategoryDto>)categories;
 }
コード例 #2
0
            internal void ShowCategoriesEditWindow()
            {
                var categoryWindow = new CategoriesAndTypesWindow(_categories);

                categoryWindow.ShowDialog();
                categoryWindow.Dispose();
                EraseDataTable();
                if (IsDataCorrect())
                {
                    TryUpdateDates();
                    FillDataTable();
                }
            }