void ShowRecentTemplates()
        {
            templateTextRenderer.RenderRecentTemplate = true;
            languageCellRenderer.RenderRecentTemplate = true;
            var subCategoryName = Core.GettextCatalog.GetString("Recently used templates");
            var iter            = templatesTreeStore.AppendValues(
                subCategoryName,
                null,
                null,
                subCategoryName,
                null);

            foreach (SolutionTemplate template in controller.RecentTemplates)
            {
                if (template.HasProjects || controller.IsNewSolution)
                {
                    templatesTreeStore.AppendValues(
                        iter,
                        template.Name,
                        GetIcon(template.IconId, IconSize.Dnd),
                        template,
                        controller.GetCategoryPathText(template),
                        template.Language);
                }
            }
            templatesTreeView.ExpandAll();
        }
Exemple #2
0
 void ShowRecentTemplates()
 {
     templateTextRenderer.RenderRecentTemplate = true;
     templatesListStore.AppendValues(
         MarkupTopLevelCategoryName(Core.GettextCatalog.GetString("Recently used templates")),
         null,
         null);
     foreach (SolutionTemplate template in controller.RecentTemplates)
     {
         if (template.HasProjects || controller.IsNewSolution)
         {
             templatesListStore.AppendValues(
                 controller.GetCategoryPathText(template),
                 GetIcon(template.IconId, IconSize.Dnd),
                 template);
         }
     }
 }