示例#1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            LayerEdit le = new LayerEdit();

            le.LayerName = "New Layer " + layerList.Count.ToString();
            le.LayerNew  = true;
            layerList.Add(le);
            dgvLayers.DataSource = null;
            SetDataGrid();
        }
示例#2
0
 public frmLayerForm(Layers _layers)
 {
     InitializeComponent();
     for (int i = 0; i < _layers.Count; i++)
     {
         LayerEdit le = new LayerEdit();
         le.LayerName    = _layers[i].LayerName;
         le.LayerVisible = _layers[i].IsVisible;
         le.LayerActive  = _layers[i].IsActive;
         layerList.Add(le);
     }
     SetDataGrid();
 }