示例#1
0
        /// <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);
            }
        }
示例#2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="item"></param>
 /// <param name="name"></param>
 public CheckBoxTag(LayerListItem item, string name)
 {
     mItem = item;
     mName = name;
 }
示例#3
0
 private void SetAdditionals(LayerListItem item)
 {
     TransGauge.Value       = 100 - item.Opacity;
     TransText.Text         = TransGauge.Value.ToString() + "%";
     CurrentColor.BackColor = item.LayerColor;
 }