public override NextCall Invoke(WorkflowMethod invoker) { _find = Session.GetSetting<string>(this.GetType().FullName + "_find", PersistenceScope.UserSession, ""); _replace = Session.GetSetting<string>(this.GetType().FullName + "_replace", PersistenceScope.UserSession, ""); _where = Session.GetSetting<string>(this.GetType().FullName + "_where", PersistenceScope.UserSession, "allContent"); _caseSensitive = Session.GetSetting<bool>(this.GetType().FullName + "_caseSensitive", PersistenceScope.UserSession, false); _searchHtmlSource = Session.GetSetting<bool>(this.GetType().FullName + "_searchHtmlSource", PersistenceScope.UserSession, false); _allRevision = Session.GetSetting<bool>(this.GetType().FullName + "_allRevisions", PersistenceScope.UserSession, false); _allCultures = Session.GetSetting<bool>(this.GetType().FullName + "_allCultures", PersistenceScope.UserSession, false); _allSites = Session.GetSetting<bool>(this.GetType().FullName + "_allSites", PersistenceScope.UserSession, false); ContentFormDefinition cfd = new ContentFormDefinition(); cfd.AddPropertyShortString("find", "Find", _find); cfd.AddPropertyShortString("replace", "Replace", _replace); ShortStringPropertySettings s = new ShortStringPropertySettings(); s.ControlType = ShortStringControlType.DropDown; s.Items = new Dictionary<string, CsdStringSetting>(); s.Items.Add("allContent", new CsdStringSetting("Any content")); s.Items.Add("selectedContent", new CsdStringSetting("Selected contents...")); s.Items.Add("selectTypes", new CsdStringSetting("Selected types...")); cfd.AddPropertyShortString("where", "Where", _where, null, s); cfd.AddPropertyCheckBox("caseSensitive", "Match case", _caseSensitive); cfd.AddPropertyCheckBox("searchHtmlSource", "HTML source", _searchHtmlSource); cfd.AddPropertyCheckBox("allRevisions", "All revisions", _allRevision); cfd.AddPropertyCheckBox("allCultures", "All languages", _allCultures); cfd.AddPropertyCheckBox("allSites", "All sites", _allSites); cfd.AddPropertyHeading("", "<br /><font color=\"gray\">WARNING: It is not possible to undo a replace operation. </font>", false, false, true); string[] buttons = new string[] { "Find..." }; WMContentForm contentFormDiag = new WMContentForm(DialogueIcon.Question, "Find and replace text:", 400, 220, cfd, buttons, true); return new NextCall(contentFormDiag, onCompleteStep1); }
public override NextCall Invoke(WorkflowMethod invoker) { WFContext.InBackgroundMode = false; ContentFormDefinition cfd = new ContentFormDefinition(); cfd.AddPropertyCheckBox("includeDatabase", "Database", _includeDatabase); cfd.AddPropertyCheckBox("includeContentFiles", "Content files", _includeContentFiles); cfd.AddPropertyCheckBox("includeSettings", "Settings", _includeSettings); cfd.AddPropertyCheckBox("includeSearchIndex", "Search index", _includeSearchIndex); cfd.AddPropertyCheckBox("includeDefinitions", "Definitions", _includeDefinitions); cfd.AddPropertyCheckBox("includeAppCode", "Application code", _includeAppCode); cfd.AddPropertyCheckBox("includeTemplates", "Templates", _includeTemplates); cfd.AddPropertyCheckBox("includeWAF", "WAF", _includeWAF); cfd.AddPropertyCheckBox("includeOther", "All other files", _includeOther); WMContentForm cf = new WMContentForm(DialogueIcon.Question, "Please select data to include:", 200, 230, cfd); return new NextCall(cf, onSelected); }
public override NextCall Invoke(WorkflowMethod invoker) { var cfd = new ContentFormDefinition(); cfd.AddPropertyHeading("Please provide a definition file", "The new ontology will be merged with the existing one, but you will be able to review all changes before they take place." + "<br/><br/>" + "IMPORTANT: Remember to do a \"Full Rebuild\" on both installations before you perform a merge. " + "<br/><br/>", false, false, true); cfd.AddPropertyCheckBox("useNames", "Do not use Guids"); WMContentForm q = new WMContentForm(DialogueIcon.Question, null, 370, 150, cfd, new string[] { "Directly via HTTP", "Upload file", "Paste XML" }, true); //WMQuestion q = new WMQuestion(DialogueIcon.Question, UIButtons.Cancel, // new string[] { "Directly via HTTP", "Upload file", "Paste XML" }, // "Please provide a definition file", // "The new ontology will be merged with the existing one, but you will be able to review all changes before they take place." // + Environment.NewLine + Environment.NewLine // + "IMPORTANT: Remember to do a \"Full Rebuild\" on both installations before you perform a merge. " // + Environment.NewLine + Environment.NewLine // ); return new NextCall(q, onAnswer); }
public override NextCall Invoke(WorkflowMethod invoker) { _find = Session.GetSetting<string>(this.GetType().FullName + "_find", PersistenceScope.UserSession, ""); _replace = Session.GetSetting<string>(this.GetType().FullName + "_replace", PersistenceScope.UserSession, ""); _where = Session.GetSetting<string>(this.GetType().FullName + "_where", PersistenceScope.UserSession, "allContent"); _caseSensitive = Session.GetSetting<bool>(this.GetType().FullName + "_caseSensitive", PersistenceScope.UserSession, false); _searchHtmlSource = Session.GetSetting<bool>(this.GetType().FullName + "_searchHtmlSource", PersistenceScope.UserSession, false); _allRevision = Session.GetSetting<bool>(this.GetType().FullName + "_allRevisions", PersistenceScope.UserSession, false); _allCultures = Session.GetSetting<bool>(this.GetType().FullName + "_allCultures", PersistenceScope.UserSession, false); _allSites = Session.GetSetting<bool>(this.GetType().FullName + "_allSites", PersistenceScope.UserSession, false); ContentFormDefinition cfd = new ContentFormDefinition(); cfd.AddPropertyShortString("find", Local.Text("Web.WAF.Edit.ContentFind"), _find); cfd.AddPropertyShortString("replace",Local.Text("Web.WAF.Edit.ContentReplace"), _replace); ShortStringPropertySettings s = new ShortStringPropertySettings(); s.ControlType = ShortStringControlType.DropDown; s.Items = new Dictionary<string, CsdStringSetting>(); s.Items.Add("allContent", new CsdStringSetting(Local.Text("Web.WAF.Edit.ContentAnyContent"))); s.Items.Add("selectedContent", new CsdStringSetting(Local.Text("Web.WAF.Edit.ContentSelectedContents"))); s.Items.Add("selectTypes", new CsdStringSetting(Local.Text("Web.WAF.Edit.ContentSelectedTypes"))); cfd.AddPropertyShortString("where",Local.Text("Web.WAF.Edit.ContentWhere"), _where, null, s); cfd.AddPropertyCheckBox("caseSensitive", Local.Text("Web.WAF.Edit.ContentMatchCase"), _caseSensitive); cfd.AddPropertyCheckBox("searchHtmlSource", Local.Text("Web.WAF.Edit.ContentHtmlSource"), _searchHtmlSource); cfd.AddPropertyCheckBox("allRevisions",Local.Text("Web.WAF.Edit.ContentAllRevisions"), _allRevision); cfd.AddPropertyCheckBox("allCultures", Local.Text("Web.WAF.Edit.ContentAllLanguages"), _allCultures); cfd.AddPropertyCheckBox("allSites",Local.Text("Web.WAF.Edit.ContentAllSites"), _allSites); cfd.AddPropertyHeading("", "<br /><font color=\"gray\">" + Local.Text("Web.WAF.Edit.ContentWarningHtml") + "</font>", false, false, true); string[] buttons = new string[] {Local.Text("Web.WAF.Edit.ContentFind...") }; WMContentForm contentFormDiag = new WMContentForm(DialogueIcon.Question, Local.Text("Web.WAF.Edit.ContentFindAndReplace"), 400, 220, cfd, buttons, true); return new NextCall(contentFormDiag, onCompleteStep1); }