Example #1
0
        public TemplatePresenter(TemplateManager templateManager, string template)
        {
            EmbeddedTemplateLabels = new BindingList<string>();

            this.templateManager = templateManager;
            ReloadEmbeddedTemplateLabels();

            var window = new OpenTemplateWindow(EmbeddedTemplateLabels);

            OpenTemplateCommand = new OpenTemplateCommand(this, window);
            SaveTemplateCommand = new SaveTemplateCommand(this);

            Template = template;
            IsModified = false;
            SaveTemplateCommand.Refresh();
        }
 public OpenTemplateCommand(TemplatePresenter presenter, OpenTemplateWindow window)
 {
     this.presenter = presenter;
     this.window = window;
 }