/// <summary> /// Loads the layers in the listview /// </summary> //public void LoadLayers(ref GraphLayerCollection layers) public void LoadLayers(GraphControl site) { mLayers = site.Layers; mSite = site; // Name | # | Visible | Lock | Color GraphLayer layer; for (int k = 0; k < mLayers.Count; k++) { layer = mLayers[k]; LayerListItem item = CreateItem(ref layer); listView.Items.Add(item); AddCheckbox(2, k, item, "Visible", layer.Visible); AddCheckbox(3, k, item, "Locked", layer.Locked); AddCheckbox(4, k, item, "UseColor", layer.UseColor); } }
/// <summary> /// Constructor /// </summary> /// <param name="item"></param> /// <param name="name"></param> public CheckBoxTag(LayerListItem item, string name) { mItem = item; mName = name; }
private void SetAdditionals(LayerListItem item) { TransGauge.Value = 100 - item.Opacity; TransText.Text = TransGauge.Value.ToString() + "%"; CurrentColor.BackColor = item.LayerColor; }