private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            var evt = new ProcessTemplateEventArgs();

            evt.TemplateName = lstTemplates.SelectedItem.ToString();
            evt.Filename     = txtFilename.Text;

            AddTemplateEventHandler handler = AddTemplate;

            handler?.Invoke(sender, evt);
        }
        protected virtual void OnProcessTemplate(string template, string filename)
        {
            var e = new ProcessTemplateEventArgs();

            e.TemplateName = template;
            e.Filename     = filename;
            //e.ReplacementDictionary = _replacements;

            ProcessTemplateEventHandler handler = ProcessTemplate;

            handler?.Invoke(this, e);
        }