/// <summary> /// Initialize the template /// </summary> public virtual void Initialize() { if ((this.Errors.HasErrors == false)) { bool ModelValueAcquired = false; if (this.Session.ContainsKey("Model")) { this._ModelField = ((global::Spike.Build.Model)(this.Session["Model"])); ModelValueAcquired = true; } if ((ModelValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("Model"); if ((data != null)) { this._ModelField = ((global::Spike.Build.Model)(data)); } } } }
/// <summary> /// Initialize the template /// </summary> public virtual void Initialize() { if ((this.Errors.HasErrors == false)) { bool ModelValueAcquired = false; if (this.Session.ContainsKey("Model")) { this._ModelField = ((global::Spike.Build.Model)(this.Session["Model"])); ModelValueAcquired = true; } if ((ModelValueAcquired == false)) { object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("Model"); if ((data != null)) { this._ModelField = ((global::Spike.Build.Model)(data)); } } } }