Example #1
0
 internal OpenSpan.Adapters.ActiveX.ActiveXFactory Create_ActiveXFactory(out System.Collections.Generic.ICollection <System.ComponentModel.IComponent> components)
 {
     components = new System.Collections.Generic.List <System.ComponentModel.IComponent>();
     OpenSpan.Adapters.ActiveX.ActiveXFactory ActiveXFactory = new OpenSpan.Adapters.ActiveX.ActiveXFactory();
     this.SetId(ActiveXFactory, new OpenSpan.Design.ComponentIdentity("ActiveXFactory-8D7637AC53C4879"));
     ActiveXFactory.Extender    = null;
     ActiveXFactory.FactoryName = null;
     ActiveXFactory.ForwardObjectExplorerEvent = true;
     ActiveXFactory.MatchingIndex = 0;
     OpenSpan.Adapters.Windows.MatchRules.ModuleNameMatchRule moduleNameMatchRule2;
     moduleNameMatchRule2 = new OpenSpan.Adapters.Windows.MatchRules.ModuleNameMatchRule();
     //
     // moduleNameMatchRule2
     //
     OpenSpan.Adapters.TextMatchData textmatchdata1 = new OpenSpan.Adapters.TextMatchData();
     textmatchdata1.Text       = "ole32.dll";
     moduleNameMatchRule2.Text = textmatchdata1;
     ActiveXFactory.MatchRules.Add(moduleNameMatchRule2);
     ActiveXFactory.Name             = "ActiveXFactory";
     ActiveXFactory.TargetTypeString = "OpenSpan.Adapters.Windows.WindowsModule, OpenSpan.Adapters.Windows";
     ActiveXFactory.UseKeys          = true;
     //
     // Set designComp Ids
     //
     this.SetId(moduleNameMatchRule2, new OpenSpan.Design.ComponentIdentity("ModuleNameMatchRule-8D7637AC545D174"));
     //
     // Add components
     //
     components.Add(moduleNameMatchRule2);
     //
     // Result
     //
     return(ActiveXFactory);
 }
Example #2
0
 public ACMESearch()
 {
     //
     // Global Initialization
     //
     OpenSpan.Diagnostics.Diagnostic.Initialize();
     //
     // Setup field members
     //
     System.ComponentModel.ComponentResourceManager _resources_ = new System.ComponentModel.ComponentResourceManager(typeof(ACMESearch));
     OpenSpan.Adapters.TextMatchData textmatchdata1             = new OpenSpan.Adapters.TextMatchData();
     OpenSpan.Adapters.TextMatchData textmatchdata2             = new OpenSpan.Adapters.TextMatchData();
     OpenSpan.Adapters.TextMatchData textmatchdata3             = new OpenSpan.Adapters.TextMatchData();
     this.ActiveXFactory       = new OpenSpan.Adapters.ActiveX.ActiveXFactory();
     this.moduleNameMatchRule1 = new OpenSpan.Adapters.Windows.MatchRules.ModuleNameMatchRule();
     this.WinInetFactory       = new OpenSpan.Adapters.WinInet.WinInetFactory();
     this.moduleNameMatchRule2 = new OpenSpan.Adapters.Windows.MatchRules.ModuleNameMatchRule();
     this.MicrosoftHTMLFactory = new OpenSpan.Adapters.Web.MicrosoftHTMLFactory();
     this.moduleNameMatchRule3 = new OpenSpan.Adapters.Windows.MatchRules.ModuleNameMatchRule();
     //
     // Initialize design component
     //
     this.Initialize();
     //
     // Set design component Id
     //
     this.Id = new OpenSpan.Design.ComponentIdentity("WebAdapter-8D8DE2BB139348E");
     //
     // Set component Ids
     //
     this.SetId(this.ActiveXFactory, new OpenSpan.Design.ComponentIdentity("ActiveXFactory-8D8DFDE4F24F077"));
     this.SetId(this.moduleNameMatchRule1, new OpenSpan.Design.ComponentIdentity("ModuleNameMatchRule-8D8DFDE4F564DD2"));
     this.SetId(this.WinInetFactory, new OpenSpan.Design.ComponentIdentity("WinInetFactory-8D8DFDE517C7E10"));
     this.SetId(this.moduleNameMatchRule2, new OpenSpan.Design.ComponentIdentity("ModuleNameMatchRule-8D8DFDE51863B5D"));
     this.SetId(this.MicrosoftHTMLFactory, new OpenSpan.Design.ComponentIdentity("MicrosoftHTMLFactory-8D8DFDE58FC030E"));
     this.SetId(this.moduleNameMatchRule3, new OpenSpan.Design.ComponentIdentity("ModuleNameMatchRule-8D8DFDE5912D6D2"));
     //
     // ACMESearch
     //
     this.AdvancedConfiguration = null;
     ComponentInfo.CodeDomData  = _resources_.GetString("_ACMESearch_1_");
     //
     // ActiveXFactory
     //
     this.ActiveXFactory.Extender    = null;
     this.ActiveXFactory.FactoryName = null;
     this.ActiveXFactory.ForwardObjectExplorerEvent = true;
     this.ActiveXFactory.MatchingIndex = 0;
     //
     // moduleNameMatchRule1
     //
     textmatchdata1.Text            = "ole32.dll";
     this.moduleNameMatchRule1.Text = textmatchdata1;
     this.ActiveXFactory.MatchRules.Add(this.moduleNameMatchRule1);
     this.ActiveXFactory.Name             = "ActiveXFactory";
     this.ActiveXFactory.PegaId           = 0;
     this.ActiveXFactory.TargetTypeString = "OpenSpan.Adapters.Windows.WindowsModule, OpenSpan.Adapters.Windows";
     this.ActiveXFactory.UseKeys          = true;
     this.ActiveXFactory.XrayGuid         = "";
     //
     // WinInetFactory
     //
     this.WinInetFactory.Extender    = null;
     this.WinInetFactory.FactoryName = null;
     this.WinInetFactory.ForwardObjectExplorerEvent = true;
     this.WinInetFactory.MatchingIndex = 0;
     //
     // moduleNameMatchRule2
     //
     textmatchdata2.Text            = "wininet.dll";
     this.moduleNameMatchRule2.Text = textmatchdata2;
     this.WinInetFactory.MatchRules.Add(this.moduleNameMatchRule2);
     this.WinInetFactory.Name             = "WinInetFactory";
     this.WinInetFactory.PegaId           = 0;
     this.WinInetFactory.TargetTypeString = "OpenSpan.Adapters.Windows.WindowsModule, OpenSpan.Adapters.Windows";
     this.WinInetFactory.UseKeys          = true;
     this.WinInetFactory.XrayGuid         = "";
     //
     // MicrosoftHTMLFactory
     //
     this.MicrosoftHTMLFactory.Extender    = null;
     this.MicrosoftHTMLFactory.FactoryName = null;
     this.MicrosoftHTMLFactory.ForwardObjectExplorerEvent = true;
     this.MicrosoftHTMLFactory.MatchingIndex = 0;
     //
     // moduleNameMatchRule3
     //
     textmatchdata3.Text            = "mshtml.dll";
     this.moduleNameMatchRule3.Text = textmatchdata3;
     this.MicrosoftHTMLFactory.MatchRules.Add(this.moduleNameMatchRule3);
     this.MicrosoftHTMLFactory.Name             = "MicrosoftHTMLFactory";
     this.MicrosoftHTMLFactory.PegaId           = 0;
     this.MicrosoftHTMLFactory.TargetTypeString = "OpenSpan.Adapters.Windows.WindowsModule, OpenSpan.Adapters.Windows";
     this.MicrosoftHTMLFactory.UseKeys          = true;
     this.MicrosoftHTMLFactory.XrayGuid         = "";
     this.Controls.Add(this.ActiveXFactory);
     this.Controls.Add(this.WinInetFactory);
     this.Controls.Add(this.MicrosoftHTMLFactory);
     this.ExpressNativeTypes = null;
     this.Extender           = null;
     this.FriendlyName       = "ACMESearch";
     this.IgnoreMainBrowser  = false;
     this.Name = "ACMESearch";
     this.ReasonAdapterNotReady = null;
     this.StartMyDay            = OpenSpan.ApplicationFramework.StartMyDay.StartOptions.None;
     this.StartMyDayControls    = null;
     this.StartOnProjectStart   = false;
     this.StartPage             = "http://training.pega.com/";
     this.XrayMasterNames       = null;
     //
     // Add components
     //
     this.mComponents = new System.Collections.Generic.List <System.ComponentModel.IComponent>(20);
     this.Components.Add(this.ActiveXFactory);
     this.Components.Add(this.moduleNameMatchRule1);
     this.Components.Add(this.WinInetFactory);
     this.Components.Add(this.moduleNameMatchRule2);
     this.Components.Add(this.MicrosoftHTMLFactory);
     this.Components.Add(this.moduleNameMatchRule3);
 }
Example #3
0
 public Windows_Application1()
 {
     //
     // Global Initialization
     //
     OpenSpan.Diagnostics.Diagnostic.Initialize();
     //
     // Setup field members
     //
     System.ComponentModel.ComponentResourceManager _resources_ = new System.ComponentModel.ComponentResourceManager(typeof(Windows_Application1));
     OpenSpan.Adapters.TextMatchData textmatchdata1             = new OpenSpan.Adapters.TextMatchData();
     OpenSpan.Adapters.TextMatchData textmatchdata2             = new OpenSpan.Adapters.TextMatchData();
     OpenSpan.Adapters.TextMatchData textmatchdata3             = new OpenSpan.Adapters.TextMatchData();
     OpenSpan.Adapters.TextMatchData textmatchdata4             = new OpenSpan.Adapters.TextMatchData();
     OpenSpan.Adapters.TextMatchData textmatchdata5             = new OpenSpan.Adapters.TextMatchData();
     OpenSpan.Adapters.TextMatchData textmatchdata6             = new OpenSpan.Adapters.TextMatchData();
     this.DotNet20Factory         = new OpenSpan.Adapters.DotNet.DotNet20Factory();
     this.moduleNameMatchRule1    = new OpenSpan.Adapters.Windows.MatchRules.ModuleNameMatchRule();
     this.moduleVersionMatchRule1 = new OpenSpan.Adapters.Windows.MatchRules.ModuleVersionMatchRule();
     this.ActiveXFactory          = new OpenSpan.Adapters.ActiveX.ActiveXFactory();
     this.moduleNameMatchRule2    = new OpenSpan.Adapters.Windows.MatchRules.ModuleNameMatchRule();
     this.Login   = new OpenSpan.Adapters.Controls.Form();
     this.picLogo = new OpenSpan.Adapters.Controls.Control();
     this.virtualControlNativeControlNameMat1 = new OpenSpan.Adapters.Virtual.VirtualMatchRules.VirtualControlNativeControlNameMatchRule();
     this.windowTextMatchRule1 = new OpenSpan.Adapters.Windows.MatchRules.WindowTextMatchRule();
     this.virtualControlContainerNativeWindo1 = new OpenSpan.Adapters.Virtual.VirtualMatchRules.VirtualControlContainerNativeWindowNameMatchRule();
     //
     // Initialize design component
     //
     this.Initialize();
     //
     // Set design component Id
     //
     this.Id = new OpenSpan.Design.ComponentIdentity("WindowsAdapter-8D7637AB5167B4A");
     //
     // Set component Ids
     //
     this.SetId(this.DotNet20Factory, new OpenSpan.Design.ComponentIdentity("DotNet20Factory-8D7637AC5065043"));
     this.SetId(this.moduleNameMatchRule1, new OpenSpan.Design.ComponentIdentity("ModuleNameMatchRule-8D7637AC51A5D4C"));
     this.SetId(this.moduleVersionMatchRule1, new OpenSpan.Design.ComponentIdentity("ModuleVersionMatchRule-8D7637AC5202038"));
     this.SetId(this.ActiveXFactory, new OpenSpan.Design.ComponentIdentity("ActiveXFactory-8D7637AC53C4879"));
     this.SetId(this.moduleNameMatchRule2, new OpenSpan.Design.ComponentIdentity("ModuleNameMatchRule-8D7637AC545D174"));
     this.SetId(this.Login, new OpenSpan.Design.ComponentIdentity("Form-8D7637ACAA8408A"));
     this.SetId(this.picLogo, new OpenSpan.Design.ComponentIdentity("Control-8D7637ACAA37C3A"));
     this.SetId(this.virtualControlNativeControlNameMat1, new OpenSpan.Design.ComponentIdentity("VirtualControlNativeControlNameMatchRule-8D7637ACABFE164"));
     this.SetId(this.windowTextMatchRule1, new OpenSpan.Design.ComponentIdentity("WindowTextMatchRule-8D7637ACAAE042D"));
     this.SetId(this.virtualControlContainerNativeWindo1, new OpenSpan.Design.ComponentIdentity("VirtualControlContainerNativeWindowNameMatchRule-8D7637ACAB78B13"));
     //
     // Windows_Application1
     //
     this.AdvancedConfiguration = null;
     ComponentInfo.CodeDomData  = _resources_.GetString("_Windows_Application1_1_");
     //
     // DotNet20Factory
     //
     this.DotNet20Factory.Extender    = null;
     this.DotNet20Factory.FactoryName = null;
     this.DotNet20Factory.ForwardObjectExplorerEvent = true;
     this.DotNet20Factory.MatchingIndex = 0;
     //
     // moduleNameMatchRule1
     //
     textmatchdata1.Text            = "mscorwks.dll";
     this.moduleNameMatchRule1.Text = textmatchdata1;
     //
     // moduleVersionMatchRule1
     //
     textmatchdata2.Mode = OpenSpan.Adapters.TextMatchMode.Wildcard;
     textmatchdata2.Text = "2.0.*.*";
     this.moduleVersionMatchRule1.Text = textmatchdata2;
     this.DotNet20Factory.MatchRules.Add(this.moduleNameMatchRule1);
     this.DotNet20Factory.MatchRules.Add(this.moduleVersionMatchRule1);
     this.DotNet20Factory.Name             = "DotNet20Factory";
     this.DotNet20Factory.TargetTypeString = "OpenSpan.Adapters.Windows.WindowsModule, OpenSpan.Adapters.Windows";
     this.DotNet20Factory.UseKeys          = true;
     //
     // ActiveXFactory
     //
     this.ActiveXFactory.Extender    = null;
     this.ActiveXFactory.FactoryName = null;
     this.ActiveXFactory.ForwardObjectExplorerEvent = true;
     this.ActiveXFactory.MatchingIndex = 0;
     //
     // moduleNameMatchRule2
     //
     textmatchdata3.Text            = "ole32.dll";
     this.moduleNameMatchRule2.Text = textmatchdata3;
     this.ActiveXFactory.MatchRules.Add(this.moduleNameMatchRule2);
     this.ActiveXFactory.Name             = "ActiveXFactory";
     this.ActiveXFactory.TargetTypeString = "OpenSpan.Adapters.Windows.WindowsModule, OpenSpan.Adapters.Windows";
     this.ActiveXFactory.UseKeys          = true;
     //
     // Login
     //
     //
     // picLogo
     //
     this.picLogo.Extender                   = null;
     this.picLogo.ExtensibleTypeName         = "System.Windows.Forms.PictureBox, System.Windows.Forms";
     this.picLogo.ForwardObjectExplorerEvent = true;
     this.picLogo.MatchingIndex              = 7;
     //
     // virtualControlNativeControlNameMat1
     //
     textmatchdata4.Text = "picLogo";
     this.virtualControlNativeControlNameMat1.NativeControlName = textmatchdata4;
     this.picLogo.MatchRules.Add(this.virtualControlNativeControlNameMat1);
     this.picLogo.Name             = "picLogo";
     this.picLogo.TargetTypeString = _resources_.GetString("_Windows_Application1_2_");
     this.Login.Controls.Add(this.picLogo);
     this.Login.Extender                   = null;
     this.Login.ExtensibleTypeName         = null;
     this.Login.ForwardObjectExplorerEvent = true;
     this.Login.MatchingIndex              = 3;
     //
     // windowTextMatchRule1
     //
     textmatchdata5.Text            = "Login";
     this.windowTextMatchRule1.Text = textmatchdata5;
     //
     // virtualControlContainerNativeWindo1
     //
     textmatchdata6.Text = "WindowsForms10.Window.8.app.0.378734a";
     this.virtualControlContainerNativeWindo1.VirtualWindowName = textmatchdata6;
     this.Login.MatchRules.Add(this.windowTextMatchRule1);
     this.Login.MatchRules.Add(this.virtualControlContainerNativeWindo1);
     this.Login.Name             = "Login";
     this.Login.TargetTypeString = _resources_.GetString("_Windows_Application1_3_");
     this.Controls.Add(this.DotNet20Factory);
     this.Controls.Add(this.ActiveXFactory);
     this.Controls.Add(this.Login);
     this.ExpressNativeTypes = null;
     this.Extender           = null;
     this.FriendlyName       = "Windows_Application1";
     this.Name = "Windows_Application1";
     this.Path = "C:\\Program Files (x86)\\Pegasystems\\CRM Setup\\CRM.exe";
     this.ReasonAdapterNotReady = null;
     this.StartMyDay            = OpenSpan.ApplicationFramework.StartMyDay.StartOptions.None;
     this.StartMyDayControls    = null;
     this.WorkingDirectory      = "C:\\Program Files (x86)\\Pegasystems\\CRM Setup";
     //
     // Add components
     //
     this.mComponents = new System.Collections.Generic.List <System.ComponentModel.IComponent>(20);
     this.Components.Add(this.DotNet20Factory);
     this.Components.Add(this.moduleNameMatchRule1);
     this.Components.Add(this.moduleVersionMatchRule1);
     this.Components.Add(this.ActiveXFactory);
     this.Components.Add(this.moduleNameMatchRule2);
     this.Components.Add(this.Login);
     this.Components.Add(this.picLogo);
     this.Components.Add(this.virtualControlNativeControlNameMat1);
     this.Components.Add(this.windowTextMatchRule1);
     this.Components.Add(this.virtualControlContainerNativeWindo1);
 }
Example #4
0
 public Calc()
 {
     System.ComponentModel.ComponentResourceManager _resources_ = new System.ComponentModel.ComponentResourceManager(typeof(Calc));
     OpenSpan.Adapters.TextMatchData textmatchdata1 = new OpenSpan.Adapters.TextMatchData();
     OpenSpan.Adapters.TextMatchData textmatchdata2 = new OpenSpan.Adapters.TextMatchData();
     this.ActiveXFactory = new OpenSpan.Adapters.ActiveX.ActiveXFactory();
     this.moduleNameMatchRule1 = new OpenSpan.Adapters.Windows.MatchRules.ModuleNameMatchRule();
     this.Calculator = new OpenSpan.Adapters.Controls.Form();
     this.Control1 = new OpenSpan.Adapters.Controls.Control();
     this.Control = new OpenSpan.Adapters.Controls.Control();
     this.btnSeven = new OpenSpan.Adapters.Controls.Button();
     this.classNameMatchRule4 = new OpenSpan.Adapters.Windows.MatchRules.ClassNameMatchRule();
     this.controlIdMatchRule1 = new OpenSpan.Adapters.Windows.MatchRules.ControlIdMatchRule();
     this.btnC = new OpenSpan.Adapters.Controls.Button();
     this.classNameMatchRule5 = new OpenSpan.Adapters.Windows.MatchRules.ClassNameMatchRule();
     this.controlIdMatchRule2 = new OpenSpan.Adapters.Windows.MatchRules.ControlIdMatchRule();
     this.classNameMatchRule3 = new OpenSpan.Adapters.Windows.MatchRules.ClassNameMatchRule();
     this.windowTypeMatchRule2 = new OpenSpan.Adapters.Windows.MatchRules.WindowTypeMatchRule();
     this.controlChildrenMatchRule1 = new OpenSpan.Adapters.MatchRules.ControlChildrenMatchRule();
     this.classNameMatchRule2 = new OpenSpan.Adapters.Windows.MatchRules.ClassNameMatchRule();
     this.windowTypeMatchRule1 = new OpenSpan.Adapters.Windows.MatchRules.WindowTypeMatchRule();
     this.windowTextMatchRule1 = new OpenSpan.Adapters.Windows.MatchRules.WindowTextMatchRule();
     this.classNameMatchRule1 = new OpenSpan.Adapters.Windows.MatchRules.ClassNameMatchRule();
     //
     // Initialize design component
     //
     this.Initialize();
     //
     // Set design component Id
     //
     this.Id = new OpenSpan.Design.ComponentIdentity("WindowsAdapter-8D16242F4F549B5");
     //
     // Set component Ids
     //
     this.SetId(this.ActiveXFactory, new OpenSpan.Design.ComponentIdentity("ActiveXFactory-8D1624307A427C5"));
     this.SetId(this.moduleNameMatchRule1, new OpenSpan.Design.ComponentIdentity("ModuleNameMatchRule-8D1624307AC6525"));
     this.SetId(this.Calculator, new OpenSpan.Design.ComponentIdentity("Form-8D162430A994BE5"));
     this.SetId(this.Control1, new OpenSpan.Design.ComponentIdentity("Control-8D162430A983A75"));
     this.SetId(this.Control, new OpenSpan.Design.ComponentIdentity("Control-8D162430A972905"));
     this.SetId(this.btnSeven, new OpenSpan.Design.ComponentIdentity("Button-8D162430A933165"));
     this.SetId(this.classNameMatchRule4, new OpenSpan.Design.ComponentIdentity("ClassNameMatchRule-8D162430AA50BB5"));
     this.SetId(this.controlIdMatchRule1, new OpenSpan.Design.ComponentIdentity("ControlIdMatchRule-8D162430AA5F615"));
     this.SetId(this.btnC, new OpenSpan.Design.ComponentIdentity("Button-8D1624365A8E217"));
     this.SetId(this.classNameMatchRule5, new OpenSpan.Design.ComponentIdentity("ClassNameMatchRule-8D1624365AB2C16"));
     this.SetId(this.controlIdMatchRule2, new OpenSpan.Design.ComponentIdentity("ControlIdMatchRule-8D1624365ACD9D1"));
     this.SetId(this.classNameMatchRule3, new OpenSpan.Design.ComponentIdentity("ClassNameMatchRule-8D162430AA16235"));
     this.SetId(this.windowTypeMatchRule2, new OpenSpan.Design.ComponentIdentity("WindowTypeMatchRule-8D162430AA273A5"));
     this.SetId(this.controlChildrenMatchRule1, new OpenSpan.Design.ComponentIdentity("ControlChildrenMatchRule-8D162434F95AEEF"));
     this.SetId(this.classNameMatchRule2, new OpenSpan.Design.ComponentIdentity("ClassNameMatchRule-8D162430A9EF135"));
     this.SetId(this.windowTypeMatchRule1, new OpenSpan.Design.ComponentIdentity("WindowTypeMatchRule-8D162430AA002A5"));
     this.SetId(this.windowTextMatchRule1, new OpenSpan.Design.ComponentIdentity("WindowTextMatchRule-8D162430A9BE3F5"));
     this.SetId(this.classNameMatchRule1, new OpenSpan.Design.ComponentIdentity("ClassNameMatchRule-8D162430A9D4385"));
     //
     // Calc
     //
     ComponentInfo.CodeDomData = _resources_.GetString("_Calc_1_");
     //
     // ActiveXFactory
     //
     this.ActiveXFactory.Extender = null;
     this.ActiveXFactory.FactoryName = null;
     this.ActiveXFactory.ForwardObjectExplorerEvent = true;
     this.ActiveXFactory.MatchingIndex = 0;
     //
     // moduleNameMatchRule1
     //
     textmatchdata1.Text = "ole32.dll";
     this.moduleNameMatchRule1.Text = textmatchdata1;
     this.ActiveXFactory.MatchRules.Add(this.moduleNameMatchRule1);
     this.ActiveXFactory.Name = "ActiveXFactory";
     this.ActiveXFactory.TargetTypeString = "OpenSpan.Adapters.Windows.WindowsModule, OpenSpan.Adapters.Windows";
     this.ActiveXFactory.UseKeys = true;
     //
     // Calculator
     //
     //
     // Control1
     //
     //
     // Control
     //
     //
     // btnSeven
     //
     this.btnSeven.Extender = null;
     this.btnSeven.ForwardObjectExplorerEvent = true;
     this.btnSeven.MatchingIndex = 2;
     //
     // classNameMatchRule4
     //
     this.classNameMatchRule4.ClassName = "Button";
     //
     // controlIdMatchRule1
     //
     this.controlIdMatchRule1.ControlId = 137;
     this.btnSeven.MatchRules.Add(this.classNameMatchRule4);
     this.btnSeven.MatchRules.Add(this.controlIdMatchRule1);
     this.btnSeven.Name = "btnSeven";
     this.btnSeven.TargetTypeString = "OpenSpan.Adapters.Windows.Targets.Button, OpenSpan.Adapters.Windows";
     //
     // btnC
     //
     this.btnC.Extender = null;
     this.btnC.ForwardObjectExplorerEvent = true;
     this.btnC.MatchingIndex = 12;
     //
     // classNameMatchRule5
     //
     this.classNameMatchRule5.ClassName = "Button";
     //
     // controlIdMatchRule2
     //
     this.controlIdMatchRule2.ControlId = 81;
     this.btnC.MatchRules.Add(this.classNameMatchRule5);
     this.btnC.MatchRules.Add(this.controlIdMatchRule2);
     this.btnC.Name = "btnC";
     this.btnC.TargetTypeString = "OpenSpan.Adapters.Windows.Targets.Button, OpenSpan.Adapters.Windows";
     this.Control.Controls.Add(this.btnSeven);
     this.Control.Controls.Add(this.btnC);
     this.Control.Extender = null;
     this.Control.ForwardObjectExplorerEvent = true;
     this.Control.MatchingIndex = 3;
     //
     // classNameMatchRule3
     //
     this.classNameMatchRule3.ClassName = "#32770";
     //
     // windowTypeMatchRule2
     //
     this.windowTypeMatchRule2.Type = OpenSpan.Adapters.Windows.WindowType.Child;
     //
     // controlChildrenMatchRule1
     //
     this.controlChildrenMatchRule1.Children.Add(this.btnSeven);
     this.Control.MatchRules.Add(this.classNameMatchRule3);
     this.Control.MatchRules.Add(this.windowTypeMatchRule2);
     this.Control.MatchRules.Add(this.controlChildrenMatchRule1);
     this.Control.Name = "Control";
     this.Control.TargetTypeString = "OpenSpan.Adapters.Windows.Targets.Control, OpenSpan.Adapters.Windows";
     this.Control1.Controls.Add(this.Control);
     this.Control1.Extender = null;
     this.Control1.ForwardObjectExplorerEvent = true;
     this.Control1.MatchingIndex = 0;
     //
     // classNameMatchRule2
     //
     this.classNameMatchRule2.ClassName = "CalcFrame";
     //
     // windowTypeMatchRule1
     //
     this.windowTypeMatchRule1.Type = OpenSpan.Adapters.Windows.WindowType.Child;
     this.Control1.MatchRules.Add(this.classNameMatchRule2);
     this.Control1.MatchRules.Add(this.windowTypeMatchRule1);
     this.Control1.Name = "Control1";
     this.Control1.TargetTypeString = "OpenSpan.Adapters.Windows.Targets.Control, OpenSpan.Adapters.Windows";
     this.Calculator.Controls.Add(this.Control1);
     this.Calculator.Extender = null;
     this.Calculator.ForwardObjectExplorerEvent = true;
     this.Calculator.MatchingIndex = 0;
     //
     // windowTextMatchRule1
     //
     textmatchdata2.Text = "Calculator";
     this.windowTextMatchRule1.Text = textmatchdata2;
     //
     // classNameMatchRule1
     //
     this.classNameMatchRule1.ClassName = "CalcFrame";
     this.Calculator.MatchRules.Add(this.windowTextMatchRule1);
     this.Calculator.MatchRules.Add(this.classNameMatchRule1);
     this.Calculator.Name = "Calculator";
     this.Calculator.TargetTypeString = "OpenSpan.Adapters.Windows.Targets.Form, OpenSpan.Adapters.Windows";
     this.Controls.Add(this.ActiveXFactory);
     this.Controls.Add(this.Calculator);
     this.Extender = null;
     this.Name = "Calc";
     this.Path = "C:\\Windows\\system32\\calc.exe | System";
     this.StartMethod = OpenSpan.Adapters.Windows.WindowsProcessStartMethod.MonitorAll;
     this.WorkingDirectory = "C:\\Windows\\system32";
     //
     // Add components
     //
     this.mComponents = new System.Collections.Generic.List<System.ComponentModel.IComponent>(20);
     this.Components.Add(this.ActiveXFactory);
     this.Components.Add(this.moduleNameMatchRule1);
     this.Components.Add(this.Calculator);
     this.Components.Add(this.Control1);
     this.Components.Add(this.Control);
     this.Components.Add(this.btnSeven);
     this.Components.Add(this.classNameMatchRule4);
     this.Components.Add(this.controlIdMatchRule1);
     this.Components.Add(this.btnC);
     this.Components.Add(this.classNameMatchRule5);
     this.Components.Add(this.controlIdMatchRule2);
     this.Components.Add(this.classNameMatchRule3);
     this.Components.Add(this.windowTypeMatchRule2);
     this.Components.Add(this.controlChildrenMatchRule1);
     this.Components.Add(this.classNameMatchRule2);
     this.Components.Add(this.windowTypeMatchRule1);
     this.Components.Add(this.windowTextMatchRule1);
     this.Components.Add(this.classNameMatchRule1);
 }
Example #5
0
 internal OpenSpan.Adapters.ActiveX.ActiveXFactory Create_ActiveXFactory(out System.Collections.Generic.ICollection<System.ComponentModel.IComponent> components)
 {
     components = new System.Collections.Generic.List<System.ComponentModel.IComponent>();
     OpenSpan.Adapters.ActiveX.ActiveXFactory ActiveXFactory = new OpenSpan.Adapters.ActiveX.ActiveXFactory();
     this.SetId(ActiveXFactory, new OpenSpan.Design.ComponentIdentity("ActiveXFactory-8D1624307A427C5"));
     ActiveXFactory.Extender = null;
     ActiveXFactory.FactoryName = null;
     ActiveXFactory.ForwardObjectExplorerEvent = true;
     ActiveXFactory.MatchingIndex = 0;
     OpenSpan.Adapters.Windows.MatchRules.ModuleNameMatchRule moduleNameMatchRule1;
     moduleNameMatchRule1 = new OpenSpan.Adapters.Windows.MatchRules.ModuleNameMatchRule();
     //
     // moduleNameMatchRule1
     //
     OpenSpan.Adapters.TextMatchData textmatchdata1 = new OpenSpan.Adapters.TextMatchData();
     textmatchdata1.Text = "ole32.dll";
     moduleNameMatchRule1.Text = textmatchdata1;
     ActiveXFactory.MatchRules.Add(moduleNameMatchRule1);
     ActiveXFactory.Name = "ActiveXFactory";
     ActiveXFactory.TargetTypeString = "OpenSpan.Adapters.Windows.WindowsModule, OpenSpan.Adapters.Windows";
     ActiveXFactory.UseKeys = true;
     //
     // Set component Ids
     //
     this.SetId(moduleNameMatchRule1, new OpenSpan.Design.ComponentIdentity("ModuleNameMatchRule-8D1624307AC6525"));
     //
     // Add components
     //
     components.Add(moduleNameMatchRule1);
     //
     // Result
     //
     return ActiveXFactory;
 }