private void LoadZones() { if (isManager || isDeployer) { dropZones.DataSource = ZoneDB.GetStandAloneBox(); dropZones.DataValueField = "Zone_ID"; dropZones.DataTextField = "Zone_Name"; dropZones.DataBind(); dropZones.Items.Insert(0, new ListItem("Root", "0")); } MiscUtility.SetSelected(dropZones.Items, AppEnv.ZoneSelected.ToString()); }
private void LoadZones() { ZoneUtility.LoadZones(dropZones.Items); lstZones.DataSource = ZoneDB.GetStandAloneBox(); lstZones.DataValueField = "Zone_ID"; lstZones.DataTextField = "Zone_Name"; lstZones.DataBind(); lstZones.Items.Insert(0, new ListItem("Root", "0")); MiscUtility.SetSelected(lstZones.Items, zoneSelected.ToString()); lstZones_SelectedIndexChanged(null, null); }
private void LoadZones() { lstZones.Enabled = false; if (isManager || isDeployer) { lstZones.DataSource = ZoneDB.GetStandAloneBox(); lstZones.DataValueField = "Zone_ID"; lstZones.DataTextField = "Zone_Name"; lstZones.DataBind(); } if (isManager || isDeployer) { lstZones.Enabled = true; } }