public static TemplateEditorData LoadFromXml(IModuleData moduleData, XElement xmlData) { string ID = XmlDataHelper.GetAttributeAsString(xmlData, "ID", ""); if (!String.IsNullOrWhiteSpace(ID)) { TemplateEditorData data = new TemplateEditorData() { ID = ID, Name = GetPropertyValueFromXml(moduleData, xmlData, "TabName"), LabelText = GetPropertyValueFromXml(moduleData, xmlData, "LabelText"), DefaultFileName = GetPropertyValueFromXml(moduleData, xmlData, "DefaultTemplateFilename"), ExportPath = GetPropertyValueFromXml(moduleData, xmlData, "ExportPath"), DefaultEditorText = GetPropertyValueFromXml(moduleData, xmlData, "DefaultEditorText"), ToolTipText = ReplaceNewlineSymbols(GetPropertyValueFromXml(moduleData, xmlData, "ToolTip")) }; return(data); } return(null); }
public void CreateNewTemplateData() { newTemplateData = new TemplateEditorData(); this.RaisePropertyChanged("NewTemplateData"); }