/// <summary> /// Initialize the template /// </summary> public virtual void Initialize() { if ((this.Errors.HasErrors == false)) { bool IntfOptionsValueAcquired = false; if (this.Session.ContainsKey("IntfOptions")) { this._IntfOptionsField = ((global::ILAK.API.ListOfIntfGenOption)(this.Session["IntfOptions"])); IntfOptionsValueAcquired = true; } if ((IntfOptionsValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("IntfOptions"); if ((data != null)) { this._IntfOptionsField = ((global::ILAK.API.ListOfIntfGenOption)(data)); } } } }
/// <summary> /// Initialize the template /// </summary> public virtual void Initialize() { if ((this.Errors.HasErrors == false)) { bool IntfOptionsValueAcquired = false; if (this.Session.ContainsKey("IntfOptions")) { this._IntfOptionsField = ((global::ILAK.API.ListOfIntfGenOption)(this.Session["IntfOptions"])); IntfOptionsValueAcquired = true; } if ((IntfOptionsValueAcquired == false)) { string parameterValue = this.Host.ResolveParameterValue("Property", "PropertyDirectiveProcessor", "IntfOptions"); if ((string.IsNullOrEmpty(parameterValue) == false)) { global::System.ComponentModel.TypeConverter tc = global::System.ComponentModel.TypeDescriptor.GetConverter(typeof(global::ILAK.API.ListOfIntfGenOption)); if (((tc != null) && tc.CanConvertFrom(typeof(string)))) { this._IntfOptionsField = ((global::ILAK.API.ListOfIntfGenOption)(tc.ConvertFrom(parameterValue))); IntfOptionsValueAcquired = true; } else { this.Error("参数“IntfOptions”的类型“ILAK.API.ListOfIntfGenOption”与传递到模板的数据类型不匹配。"); } } } if ((IntfOptionsValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("IntfOptions"); if ((data != null)) { this._IntfOptionsField = ((global::ILAK.API.ListOfIntfGenOption)(data)); } } } }