Example #1
0
 public CategoriesTemplateEditorWidget(ITemplateProvider <Categories, Category> provider) : base(provider)
 {
     hkList             = new List <HotKey>();
     categoriestreeview = new CategoriesTreeView();
     categoriestreeview.CategoryClicked    += this.OnCategoryClicked;
     categoriestreeview.CategoriesSelected += this.OnCategoriesSelected;
     CurrentPage   = 0;
     FirstPageName = Catalog.GetString("Categories");
     AddTreeView(categoriestreeview);
     gameUnitsEditor = new GameUnitsEditor();
     AddPage(gameUnitsEditor, "Game phases");
 }
Example #2
0
 public CategoriesTemplateEditorWidget(ITemplatesService ts) : base(ts.CategoriesTemplateProvider)
 {
     hkList             = new List <HotKey>();
     categoriestreeview = new CategoriesTreeView();
     categoriestreeview.CategoryClicked    += this.OnCategoryClicked;
     categoriestreeview.CategoriesSelected += this.OnCategoriesSelected;
     CurrentPage   = 0;
     FirstPageName = Catalog.GetString("Categories");
     AddBackgroundsSelectionWidget();
     AddTreeView(categoriestreeview);
     gameUnitsEditor = new GameUnitsEditor();
     if (Config.UseGameUnits)
     {
         AddPage(gameUnitsEditor, "Game phases");
     }
     this.ts = ts;
 }