using System;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Web;

using System.Web.SessionState;

using System.Web.UI;

using System.Web.UI.WebControls;

using System.Web.UI.HtmlControls;

 

using AutomatedArchitecture.Northwind.UiCommon;

 

namespace AutomatedArchitecture.Northwind.WebUserControls.Base {

      public class Customers_Identify_Base : UserControl {

            private System.Web.UI.WebControls.Label lblCompanyName;

            private System.Web.UI.WebControls.Label lblCustomerID;

 

            /*********************************************************************

             * CONSTRUCTOR

             ********************************************************************/

            public Customers_Identify_Base() {

            }

 

            /*********************************************************************

             * PRIVATE VARS

             ********************************************************************/

            protected DataRow mrowIdentifyRow;

 

            /*********************************************************************

             * PUBLIC PROPERTIES

             ********************************************************************/

            public DataRow IdentifyRow {

                  get {return mrowIdentifyRow;}

                  set {

                        mrowIdentifyRow = value;

                  }

            }

 

            /*********************************************************************

             * PAGE LOAD

             ********************************************************************/

            protected virtual void Page_Load_Base(object sender, System.EventArgs e) {

                  if (IdentifyRow != null) {

                        UiHelper.PopulateLabel(lblCompanyName, IdentifyRow, "CompanyName");

                        UiHelper.PopulateLabel(lblCustomerID, IdentifyRow, "CustomerID");

                  }

            }

 

            /*********************************************************************

             * EVENT HOOKUPS

             ********************************************************************/

            #region Event Hookups

            override protected void OnInit(EventArgs e) {

                  BindLocalControlVariables();

                  InitializeComponent();

                  base.OnInit(e);

            }

 

            private void InitializeComponent() {

                  this.Load += new System.EventHandler(this.Page_Load_Base);

            }

 

            private void BindLocalControlVariables() {

                  lblCompanyName = (Label)this.FindControl("lblCompanyName");

                  lblCustomerID = (Label)this.FindControl("lblCustomerID");

            }

            #endregion

 

            /*********************************************************************

             * EVENT HANDLERS

             ********************************************************************/

 

      }

}