Esempio n. 1
0
 public Activity Create(System.Windows.DependencyObject target)
 {
     Type t = typeof(GetElement);
     var wfdesigner = Plugin.client.Window.LastDesigner;
     WFHelper.DynamicAssemblyMonitor(wfdesigner.WorkflowDesigner, t.Assembly.GetName().Name, t.Assembly, true);
     var fef = new GetElement();
     var aa = new ActivityAction<NMElement>();
     var da = new DelegateInArgument<NMElement>();
     da.Name = "item";
     fef.Body = aa;
     aa.Argument = da;
     return fef;
 }
Esempio n. 2
0
        public Activity Create(System.Windows.DependencyObject target)
        {
            Type t          = typeof(WaitForText);
            var  wfdesigner = global.OpenRPAClient.CurrentDesigner;

            WFHelper.DynamicAssemblyMonitor(wfdesigner.WorkflowDesigner, t.Assembly.GetName().Name, t.Assembly, true);
            var fef = new WaitForText();
            var aa  = new ActivityAction <bool>();
            var da  = new DelegateInArgument <bool>();

            da.Name     = "item";
            aa.Handler  = new System.Activities.Statements.Sequence();
            fef.Body    = aa;
            aa.Argument = da;
            return(fef);
        }
Esempio n. 3
0
        public Activity Create(System.Windows.DependencyObject target)
        {
            Type t          = typeof(TerminalSession);
            var  wfdesigner = global.OpenRPAClient.CurrentDesigner;

            WFHelper.DynamicAssemblyMonitor(wfdesigner.WorkflowDesigner, t.Assembly.GetName().Name, t.Assembly, true);
            var fef = new TerminalSession();
            // fef.Variables = new System.Collections.ObjectModel.Collection<Variable>();
            var aa = new ActivityAction <Interfaces.VT.ITerminalSession>();
            var da = new DelegateInArgument <Interfaces.VT.ITerminalSession>();

            da.Name     = "_session";
            aa.Handler  = new System.Activities.Statements.Sequence();
            fef.Body    = aa;
            aa.Argument = da;
            return(fef);
        }
Esempio n. 4
0
        public Activity Create(System.Windows.DependencyObject target)
        {
            Type t          = typeof(GetElement);
            var  wfdesigner = Plugin.client.Window.LastDesigner;

            WFHelper.DynamicAssemblyMonitor(wfdesigner.WorkflowDesigner, t.Assembly.GetName().Name, t.Assembly, true);
            var fef = new GetImage();

            fef.Variables.Add(new Variable <int>("Index", 0));
            fef.Variables.Add(new Variable <int>("Total", 0));
            var aa = new ActivityAction <ImageElement>();
            var da = new DelegateInArgument <ImageElement>();

            da.Name     = "item";
            fef.Body    = aa;
            aa.Argument = da;
            return(fef);
        }