Пример #1
0
/// <summary>
/// Initialize the template
/// </summary>
        public virtual void Initialize()
        {
            if ((this.Errors.HasErrors == false))
            {
                bool CustomerValueAcquired = false;
                if (this.Session.ContainsKey("Customer"))
                {
                    this._CustomerField   = ((global::CustomerT4ConsoleApp.Customer)(this.Session["Customer"]));
                    CustomerValueAcquired = true;
                }
                if ((CustomerValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("Customer");
                    if ((data != null))
                    {
                        this._CustomerField = ((global::CustomerT4ConsoleApp.Customer)(data));
                    }
                }
            }
        }
Пример #2
0
/// <summary>
/// Initialize the template
/// </summary>
public virtual void Initialize()
{
    if ((this.Errors.HasErrors == false))
    {
bool CustomerValueAcquired = false;
if (this.Session.ContainsKey("Customer"))
{
    this._CustomerField = ((global::CustomerT4ConsoleApp.Customer)(this.Session["Customer"]));
    CustomerValueAcquired = true;
}
if ((CustomerValueAcquired == false))
{
    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("Customer");
    if ((data != null))
    {
        this._CustomerField = ((global::CustomerT4ConsoleApp.Customer)(data));
    }
}


    }
}