public void InitializeEditMode()
        {
            Category = null;
            var categoryPropertyPresenter = new CategoryPropertyPresenter(this);

            categoryPropertyPresenter.SetButtonToEditMode();
            categoryPropertyPresenter.SetFieldsEmpty();
        }
        public void InitializeViewMode(Category category)
        {
            Category = category;
            var categoryPropertyPresenter = new CategoryPropertyPresenter(this);

            categoryPropertyPresenter.SetButtonToViewMode();
            categoryPropertyPresenter.SetFields();
        }
        private void BtnCategoryDeleteClick(object sender, EventArgs e)
        {
            //ToDo Ask if the user really wants to delete

            CategoryPropertyPresenter categoryPropertyPresenter = new CategoryPropertyPresenter(this);
            categoryPropertyPresenter.Delete(Category);

            ReloadTreeView();
        }
        private void BtnCategoryUpdateClick(object sender, EventArgs e)
        {
            CategoryPropertyPresenter categoryPropertyPresenter = new CategoryPropertyPresenter(this);

            if (categoryPropertyPresenter.Update(Category))
                ReloadTreeView();
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     CategoryPropertyPresenter categoryPropertyPresenter = new CategoryPropertyPresenter(this);
     categoryPropertyPresenter.InitErrorLabel();
 }