Esempio n. 1
0
        public bool ChooseItemTemplate(string folder, out ContentItemTemplate template, out string name)
        {
            var dialog = new NewItemDialog(PipelineController.Instance.Templates.GetEnumerator(), folder);
            var result = dialog.Run(this) == DialogResult.Ok;

            template = dialog.Selected;
            name     = dialog.Name;

            return(result);
        }
Esempio n. 2
0
        public bool ChooseItemTemplate(string folder, out ContentItemTemplate template, out string name)
        {
            var dialog = new NewItemDialog(PipelineController.Instance.Templates.GetEnumerator(), folder);
            var result = dialog.ShowModal(this);

            template = dialog.Selected;
            name     = dialog.Name + Path.GetExtension(template.TemplateFile);

            return(result);
        }