public override NextCall Invoke(WorkflowMethod invoker) { WFContext.Info.InBackgroundMode = false; string t; if (_selected.Count == 1) { t = "Deleted the content \"" + Session.GetContent(_selected[0]).Name + "\"?"; } else { t = "Deleted these " + _selected.Count + " contents?"; } WMConfirmQuestion q = new WMConfirmQuestion(t); return new NextCall(q, onComplete); }
public override NextCall Invoke(WorkflowMethod invoker) { WFContext.Info.InBackgroundMode = false; string t; if (_selected.Count == 1) { t = Local.Text("Web.WAF.Dialogues.Main.FindContentInfoInBackgroundDeleteContent") + " " + Session.GetContent(_selected[0]).Name + "\"?"; } else { t = Local.Text("Web.WAF.Dialogues.Main.FindContentInfoInBackgroundDeleteThese") + " " + _selected.Count + " " + Local.Text("Web.WAF.Dialogues.Main.FindContentInfoInBackgroundContens"); } WMConfirmQuestion q = new WMConfirmQuestion(t); return new NextCall(q, onComplete); }
public override NextCall Invoke(WorkflowMethod invoker) { WMConfirmQuestion q; if (diag.Move) { q = new WMConfirmQuestion(string.Format("Move {0} folders and {1} files to \"{2}\"?", diag.InFolders.Count, diag.InFiles.Count, WAFRuntime.FileSystem.GetDirectoryInfo(_destination).Name)); } else { q = new WMConfirmQuestion(string.Format("Copy {0} folders and {1} files to \"{2}\"?", diag.InFolders.Count, diag.InFiles.Count, WAFRuntime.FileSystem.GetDirectoryInfo(_destination).Name)); } return new NextCall(q, start); }
public override NextCall Invoke(WorkflowMethod invoker) { WFContext.Info.InBackgroundMode = false; foreach (CKeyNLR key in _selectedFolders) { if (Session.NodeExists(key.NodeId, true, true)) { countDeleteFolder(Session.GetContent<FileFolder>(key)); } } if (WFContext.BreakExecution) return null; WMConfirmQuestion q = new WMConfirmQuestion("Delete selected folder" + (_deletedFolders > 0 ? "s" : "") + "?", Environment.NewLine + _deletedFolders + " folder" + (_deletedFolders > 0 ? "s" : "") + " and " + _deletedFiles + " file" + (_deletedFiles > 0 ? "s" : "") + " in total. "); return new NextCall(q, onComplete); }