public override void Run() { TreeNode taskNode = Workbench.Instance.ObjectExplorer.GetSelectedNode(); TaskManager mgr = ServiceManager.Instance.GetService<TaskManager>(); //EtlProcess proc = mgr.GetTask(taskNode.Name); FdoSpecializedEtlProcess proc = mgr.GetTask(taskNode.Name) as FdoSpecializedEtlProcess; if (proc != null) { if (proc is FdoBulkCopy) { FdoBulkCopy copy = proc as FdoBulkCopy; FdoBulkCopyCtl ctl = new FdoBulkCopyCtl(taskNode.Name, copy); Workbench.Instance.ShowContent(ctl, ViewRegion.Document); } else if (proc is FdoJoin) { FdoJoin join = proc as FdoJoin; FdoJoinCtl ctl = new FdoJoinCtl(taskNode.Name, join); Workbench.Instance.ShowContent(ctl, ViewRegion.Document); } else if (proc is FdoSequentialProcess) { FdoSequentialProcess seq = proc as FdoSequentialProcess; FdoSequentialProcessCtl ctl = new FdoSequentialProcessCtl(taskNode.Name, seq.ProcessDefinition); Workbench.Instance.ShowContent(ctl, ViewRegion.Document); } else { MessageService.ShowError(ResourceService.GetString("ERR_NO_EDITOR_FOR_TASK")); } } }
public override void Run() { Workbench wb = Workbench.Instance; if (wb != null) { FdoBulkCopyCtl ctl = new FdoBulkCopyCtl(); wb.ShowContent(ctl, ViewRegion.Document); } }