Esempio n. 1
0
        private void SpawnCategoryView()
        {
            ICategoryCoordinator cCoor   = CoordinatorManager.Instance.CoordinatorOfType <ICategoryCoordinator>();
            CategoryManagerView  catView = new CategoryManagerView();

            new CategoryManagerPresenter(catView, cCoor.RootCategory);
            catView.Show();
        }
        public CategoryManagerPresenter(CategoryManagerView view, IGroupCategory root)
        {
            view.AddButton.Click += AddHandler;
            _categoryTree         = view.TreeView;

            _root         = root;
            root.Changed += CategoryChangedHandler;
            // Popolo la tree view all'avvio
            CategoryChangedHandler(this, EventArgs.Empty);
        }