private void btnAddLayer_Click(object sender, EventArgs e)
        {
            LayerEdit le = new LayerEdit();

            le.LayerName = "New Layer";
            le.LayerNew  = true;
            layerList.Add(le);
            dgvLayers.DataSource = null;
            SetDataGrid();
        }
        public LayerDialog(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();
        }