public DebugMonitor() { filterPid = new NumberParam("Filter PID", 0); filterText = new TextParam("Filter Text", ""); listen = new BoolParam("Listen", true); parameters = new IParam[] { listen, filterPid, filterText }; }
public TextControl(TextParam param) : base(param) { InitializeComponent(); this.param = param; this.label1.Text = this.param.Label; UpdateControlValue(); }
public TestWindows() { windows = new List <WindowInfo>(); xyParam = new CoOrdinatesParam(); printParent = new BoolParam("Print Parent", false); printChildren = new BoolParam("Print Children", false); filter = new TextParam("Filter", ""); allTopWins = new BoolParam("-Only Print TopWindows", false); parameters = new IParam[] { xyParam, printParent, printChildren, allTopWins, filter }; }
public TestProcess() { //pidParam = new NumberParam("PID", 0); filterModuleParam = new TextParam("Filter", ""); showFilePath = new BoolParam("File Path", false); showDesc = new BoolParam("Description", false); showComments = new BoolParam("Comments", false); showVersion = new BoolParam("Version", false); showCompany = new BoolParam("Company", false); showMemory = new BoolParam("Memory", false); parameters = new IParam[] { xyParam, /*pidParam,*/ filterModuleParam, showFilePath, showVersion, showDesc, showCompany, showMemory, showComments }; }
protected override void Execute(CodeActivityContext executionContext) { var context = executionContext.GetExtension <IWorkflowContext>(); var serviceFactory = executionContext.GetExtension <IOrganizationServiceFactory>(); var service = serviceFactory.CreateOrganizationService(context.UserId); var textPar = TextParam.Get <string>(executionContext); var intPar = IntParam.Get <int>(executionContext); Entity updatedEntity = new Entity(context.PrimaryEntityName); updatedEntity.Id = context.PrimaryEntityId; updatedEntity["new_decimalfield"] = 555; updatedEntity["new_changeprocess"] = intPar; service.Update(updatedEntity); }
protected override void Execute(CodeActivityContext executionContext) { var context = executionContext.GetExtension <IWorkflowContext>(); var serviceFactory = executionContext.GetExtension <IOrganizationServiceFactory>(); var service = serviceFactory.CreateOrganizationService(context.UserId); var textPar = TextParam.Get <string>(executionContext); var intPar = IntParam.Get <int>(executionContext); var email = EmailParam.Get <string>(executionContext); Entity updatedEntity = new Entity(context.PrimaryEntityName); updatedEntity.Id = context.PrimaryEntityId; updatedEntity["new_textin"] = textPar; updatedEntity["new_number"] = intPar; { OutParam.Set(executionContext, email); } service.Update(updatedEntity); }
protected override void Execute(CodeActivityContext executionContext) { var context = executionContext.GetExtension <IWorkflowContext>(); var serviceFactory = executionContext.GetExtension <IOrganizationServiceFactory>(); var service = serviceFactory.CreateOrganizationService(context.UserId); string textPar = TextParam.Get <string>(executionContext); int intPar = IntParam.Get <int>(executionContext); EntityReference company = Account.Get <EntityReference>(executionContext); Entity updatedEntity = new Entity(context.PrimaryEntityName) { Id = context.PrimaryEntityId }; updatedEntity["new_text"] = textPar; updatedEntity["new_noun"] = intPar; if (company == null) { OutParam.Set(executionContext, "Record doesn't have account"); } else { Entity account = service.Retrieve(company.LogicalName, company.Id, new ColumnSet("emailaddress1")); if (account.Attributes.ContainsKey("emailaddress1")) { OutParam.Set(executionContext, account.GetAttributeValue <string>("emailaddress1")); } else { OutParam.Set(executionContext, "Record's account doesn't have Email"); } } service.Update(updatedEntity); }