コード例 #1
0
 public void Setup(IImageComponent component)
 {
     if (this.IsChanged(ParameterFlag.BP1) == true)
     {
         component.SetPreserveAspectState(this.preserveAspect);
     }
     if (this.IsChanged(ParameterFlag.BP2) == true)
     {
         component.SetImage(this.image);
     }
     if (this.IsChanged(ParameterFlag.BP3) == true)
     {
         component.SetImage(this.rawImage);
     }
     if (this.IsChanged(ParameterFlag.BP7) == true)
     {
         component.SetImageLocalizationKey(this.imageLocalizationKey);
     }
     if (this.IsChanged(ParameterFlag.BP4) == true)
     {
         component.SetColor(this.imageColor);
     }
     if (this.IsChanged(ParameterFlag.BP5) == true)
     {
         component.SetPlayOnShow(this.playOnShow);
     }
     if (this.IsChanged(ParameterFlag.BP6) == true)
     {
         component.SetLoop(this.loop);
     }
 }
コード例 #2
0
		public void Setup(IImageComponent component) {
			
			if (this.IsChanged(ParameterFlag./*{flagPrefix}*/P1) == true) component.SetPreserveAspectState(this.preserveAspect);
			if (this.IsChanged(ParameterFlag./*{flagPrefix}*/P2) == true) component.SetImage(this.image);
			if (this.IsChanged(ParameterFlag./*{flagPrefix}*/P3) == true) component.SetImage(this.rawImage);
			if (this.IsChanged(ParameterFlag./*{flagPrefix}*/P7) == true) component.SetImage(this.imageLocalizationKey);
			if (this.IsChanged(ParameterFlag./*{flagPrefix}*/P4) == true) component.SetColor(this.imageColor);
			if (this.IsChanged(ParameterFlag./*{flagPrefix}*/P5) == true) component.SetPlayOnShow(this.playOnShow);
			if (this.IsChanged(ParameterFlag./*{flagPrefix}*/P6) == true) component.SetLoop(this.loop);

		}