Ejemplo n.º 1
0
        /// <summary>
        /// Returns the collection of layers
        /// </summary>
        /// <returns></returns>
        public GraphLayerCollection GetLayers()
        {
            GraphLayer           layer;
            ListViewItem         item;
            GraphLayerCollection col = new GraphLayerCollection();

            for (int k = 0; k < listView.Items.Count; k++)
            {
                item  = listView.Items[k];
                layer = new GraphLayer();
                layer.SetNumber(k);
                layer.Name = item.SubItems[0].Text;
                col.Add(layer);
            }
            return(col);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Commits the changes to the referenced layer of the graphcontrol
 /// </summary>
 public void Commit()
 {
     if (mFloating)            //not committed to the control yet
     {
     }
     else
     {
         mLayer.Locked = this.Locked;
         mLayer.Name   = this.Name;
         mLayer.SetNumber(this.Number);
         mLayer.Opacity    = this.Opacity;
         mLayer.UseColor   = this.UseColor;
         mLayer.Visible    = this.Visible;
         mLayer.LayerColor = this.mLayerColor;
     }
 }