/// <summary>
 /// InitData. 
 /// </summary>
 protected override void InitData()
 {
     _data = new CompanyLevelsAddTDS();
 }
        // ////////////////////////////////////////////////////////////////////////
        // INITIAL EVENTS
        //
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                // Tag page
                hdfCompanyId.Value = Session["companyID"].ToString();
                hdfUpdate.Value = "no";

                // Initialize viewstate variables
                ViewState["StepFrom"] = "Out";

                // Prepare initial data
                // ... Remove sessions
                Session.Remove("arrayCompanyLevelsSelected");
                Session.Remove("arrayCompanyLevelsSelected2");
                Session.Remove("companyLevelManagersDummy");

                companyLevelsAddTDS = new CompanyLevelsAddTDS();

                // ... For team members
                int companyId = Int32.Parse(hdfCompanyId.Value);
                CompanyLevelsAddManagers companyLevelManagers = new CompanyLevelsAddManagers(companyLevelsAddTDS);
                companyLevelManagers.LoadAll(companyId);

                Session["companyLevelsAddTDS"] = companyLevelsAddTDS;
                Session["companyLevelManagers"] = companyLevelsAddTDS.CompanyLevelManagers;

                // ... For Company Levels
                companyLevelsTDS = new CompanyLevelsTDS();
                CompanyLevel companyLevel = new CompanyLevel(companyLevelsTDS);
                companyLevel.Load(int.Parse(hdfCompanyId.Value));

                Session["companyLevelsTDS"] = companyLevelsTDS;

                GetNodeForCompanyLevel(tvCompanyLevelsRoot.Nodes, 0);
                GetNodeForCompanyLevel(tvCompanyLevelsRoot2.Nodes, 0);

                arrayCompanyLevelsSelected = new ArrayList();
                arrayCompanyLevelsSelected2 = new ArrayList();

                Session["arrayCompanyLevelsSelected"] = arrayCompanyLevelsSelected;
                Session["arrayCompanyLevelsSelected2"] = arrayCompanyLevelsSelected2;

                wzCompanyLevelsAdd.ActiveStepIndex = 0;
                StepOperationIn();
            }
            else
            {
                // Restore tables
                companyLevelsTDS = (CompanyLevelsTDS)Session["companyLevelsTDS"];
                companyLevelsAddTDS = (CompanyLevelsAddTDS)Session["companyLevelsAddTDS"];
                companyLevelManagers = (CompanyLevelsAddTDS.CompanyLevelManagersDataTable)Session["companyLevelManagers"];
                arrayCompanyLevelsSelected = (ArrayList)Session["arrayCompanyLevelsSelected"];
                arrayCompanyLevelsSelected2 = (ArrayList)Session["arrayCompanyLevelsSelected2"];
            }
        }