Ejemplo n.º 1
0
        public CategoryListCtrl GetCategoryLstCtrl(Dictionary<string, CategoryDef> catIdLst, List<string> impCatLst = null, bool isEditable = true, int limit = 0)
        {
            try
            {
                CategoryListCtrl catLstCtrl = new CategoryListCtrl(this.gl_xDoc, catIdLst, impCatLst, isEditable, false, limit);
                catLstCtrl.CategoryAdded += new CategoryAddedEventHandler(catLstCtrl_CategoryAdded);
                catLstCtrl.CategoryRemoved += new CategoryRemovedEventHandler(catLstCtrl_CategoryRemoved);
                catLstCtrl.CategoryEdited += new CategoryEditedEventHandler(catLstCtrl_CategoryEdited);
                return catLstCtrl;
            }
            catch
            {
            }

            return null;
        }
Ejemplo n.º 2
0
        public CategoryListCtrl GetCategoryLstCtrl(CategoryContainer container, List<string> impCatLst = null, bool isEditable = true, int limit = 0)
        {
            try
            {
                CategoryListCtrl catLstCtrl = new CategoryListCtrl(container, impCatLst, isEditable, false, limit);
                catLstCtrl.CategoryAdded += new CategoryAddedEventHandler(catLstCtrl_CategoryAdded);
                catLstCtrl.CategoryRemoved += new CategoryRemovedEventHandler(catLstCtrl_CategoryRemoved);
                catLstCtrl.CategoryEdited += new CategoryEditedEventHandler(catLstCtrl_CategoryEdited);
                return catLstCtrl;
            }
            catch
            {
            }

            return null;
        }
Ejemplo n.º 3
0
        public CategoryListCtrl GetCategoryLstCtrl(XDocument xDoc, Dictionary<string, CategoryDef> catIdLst, List<string> impCatLst = null, bool isEditable = true,
            bool loadEachNode = false, int limit = 0, bool lockOutParentNodeSelection = false)
        {
            try
            {
                CategoryListCtrl catLstCtrl = new CategoryListCtrl(xDoc, catIdLst, impCatLst, isEditable, loadEachNode, limit, lockOutParentNodeSelection);
                catLstCtrl.CategoryAdded += new CategoryAddedEventHandler(catLstCtrl_CategoryAdded);
                catLstCtrl.CategoryRemoved += new CategoryRemovedEventHandler(catLstCtrl_CategoryRemoved);
                catLstCtrl.CategorySelected += new CategoryUnOrSelectedEventHandler(catLstCtrl_CategorySelected);
                catLstCtrl.CategoryDeSelected += new CategoryUnOrSelectedEventHandler(catLstCtrl_CategoryDeSelected);
                catLstCtrl.CategoryEdited += new CategoryEditedEventHandler(catLstCtrl_CategoryEdited);
                return catLstCtrl;
            }
            catch
            {
            }

            return null;
        }