private void LoadTextTemplates()
 {
     var tpls = this.repository.ToList((q) => q.OrderBy(x => x.Filename));
     this.templates.IsNotifying = false;
     foreach (var tpl in tpls)
     {
         var model = new TextFileModel();
         model.InjectFrom(tpl);
         this.templates.Add(model);
     }
     this.templates.IsNotifying = true;
     this.templates.Refresh();
 }
Ejemplo n.º 2
0
        private void LoadTextTemplates()
        {
            var tpls = this.repository.ToList((q) => q.OrderBy(x => x.Filename));

            this.templates.IsNotifying = false;
            foreach (var tpl in tpls)
            {
                var model = new TextFileModel();
                model.InjectFrom(tpl);
                this.templates.Add(model);
            }
            this.templates.IsNotifying = true;
            this.templates.Refresh();
        }