public ChooseActivationTypePageViewModel(ActivationInfo activationInfo, IServices services) : base(activationInfo) { this.InitializeShieldImage(); this.Services = services; this.IsPhoneActivation = false; }
private void ActivateSingleShader(GameObject go, ActivationInfo AI) { List <bool> actList = GetActivations(AI); bool shouldColor = actList[0]; bool shouldVertex = actList[1]; bool shouldDissolve = actList[2]; bool shouldSize = actList[3]; if (shouldColor) { go.GetComponent <ShaderController>().shouldColor = true; } if (shouldVertex) { go.GetComponent <ShaderController>().shouldVertex = true; } if (shouldDissolve) { go.GetComponent <ShaderController>().shouldDissolve = true; } if (shouldSize) { go.GetComponent <ShaderController>().shouldSize = true; } }
public PhoneNumbersPageViewModel(ActivationInfo activationInfo) : base(activationInfo) { this.ActivationInfo.PropertyChanged += (PropertyChangedEventHandler)((sender, e) => { if (!(e.PropertyName == "PhoneNumbers")) { return; } this.RetrievePhoneNumbers(); }); }
public InstallationIdPageViewModel(ActivationInfo activationInfo) : base(activationInfo) { this.ActivationInfo.PropertyChanged += (PropertyChangedEventHandler)((sender, e) => { if (!(e.PropertyName == "InstallationIds")) { return; } this.RetrieveInstallationIds(); }); }
public async Task <IHttpActionResult> Post(ActivationInfo activationInfo) { try { var processor = new ActivationProcessor(); await processor.SaveActivation(activationInfo); return(this.Ok()); } catch (UnauthorizedAccessException authEx) { return(InternalServerError(authEx)); } catch (Exception ex) { return(InternalServerError(ex)); } }
//---------------------------------------------------------- // GetActivationInfo //---------------------------------------------------------- public ActivationInfo GetActivationInfo() { XPathNavigator xPathNavigator = _xmlDocument.CreateNavigator(); XPathNodeIterator xPathNodeIterator = xPathNavigator.Select("/assembly/application/activation"); if (xPathNodeIterator.MoveNext() == false) { return(null); } ActivationInfo ai = new ActivationInfo(); string assemblyName = xPathNodeIterator.Current.GetAttribute("assemblyName", ""); string assemblyClass = xPathNodeIterator.Current.GetAttribute("assemblyClass", ""); string assemblyMethod = xPathNodeIterator.Current.GetAttribute("assemblyMethod", ""); string assemblyMethodArgs = xPathNodeIterator.Current.GetAttribute("assemblyMethodArgs", ""); ai["assemblyName"] = assemblyName; ai["assemblyClass"] = assemblyClass; ai["assemblyMethod"] = assemblyMethod; ai["assemblyMethodArgs"] = assemblyMethodArgs; return(ai); }
private List <bool> GetActivations(ActivationInfo AI) { bool shouldColor = false; bool shouldVertex = false; bool shouldDissolve = false; bool shouldSize = false; if (Random.Range(1, 101) <= AI.colorProb) { shouldColor = true; } if (Random.Range(1, 101) <= AI.vertexProb) { shouldVertex = true; } if (Random.Range(1, 101) <= AI.dissolveProb) { shouldDissolve = true; } if (Random.Range(1, 101) <= AI.sizeProb) { shouldSize = true; } if (shouldVertex && shouldDissolve) { if (Random.Range(1, 101) <= 50) { shouldVertex = false; } else { shouldDissolve = false; } } return(new List <bool> { shouldColor, shouldVertex, shouldDissolve, shouldSize }); }
//---------------------------------------------------------------------------- // ParseManifest //---------------------------------------------------------------------------- public void ParseManifest() { Uri sManifestUri = new Uri(_sManifestPath); ApplicationManifestImport ami = new ApplicationManifestImport(sManifestUri); ActivationInfo ai = ami.GetActivationInfo(); SecurityInfo si = ami.GetSecurityInfo(); _sAsmName = ai["assemblyName"]; _sAsmClass = ai["assemblyClass"]; _sAsmMethod = ai["assemblyMethod"]; _sAsmArgs = ai["assemblyMethodArgs"]; if (si != null) { _sSecurityStatement = si["Security"]; } Console.WriteLine("AsmName=\t" + _sAsmName); Console.WriteLine("Class=\t\t" + _sAsmClass); Console.WriteLine("Method=\t\t" + _sAsmMethod); Console.WriteLine("Args=\t\t" + _sAsmArgs); Console.WriteLine("\n"); Console.WriteLine("Security=\t\t" + _sSecurityStatement); }
public InternetActivationPageViewModel(ActivationInfo activationInfo, ActivationDataRepository dataRepository, IServices services) : base(activationInfo) { this.dataRepository = dataRepository; this.services = services; }
private void ActivateShaders(int groupNum) { List <GameObject> myGroup = new List <GameObject>(); ActivationInfo AI = new ActivationInfo(); switch (groupNum) { case 0: myGroup = masterObjectList[groupNum]; AI = groupZeroInfo; break; case 1: myGroup = masterObjectList[groupNum]; AI = groupOneInfo; break; case 2: myGroup = masterObjectList[groupNum]; AI = groupTwoInfo; break; case 3: myGroup = masterObjectList[groupNum]; AI = groupThreeInfo; break; case 4: myGroup = masterObjectList[groupNum]; AI = groupFourInfo; break; case 5: myGroup = masterObjectList[groupNum]; AI = groupFiveInfo; break; case 6: myGroup = masterObjectList[groupNum]; AI = groupSixInfo; break; case 7: myGroup = masterObjectList[groupNum]; AI = groupSevenInfo; break; case 8: myGroup = masterObjectList[groupNum]; AI = groupEightInfo; break; case 9: myGroup = masterObjectList[groupNum]; AI = groupNineInfo; break; } foreach (GameObject go in myGroup) { ActivateSingleShader(go, AI); } }
public ValidationIdEntryPageViewModel(ActivationInfo activationInfo) : base(activationInfo) { }
protected ActivationWizardPageViewModelBase(ActivationInfo activationInfo) { this.ActivationInfo = activationInfo; }