Exemplo n.º 1
0
		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;
			dgvLayers.DataSource = layerList;
		}
Exemplo n.º 2
0
        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;
            dgvLayers.DataSource = layerList;
        }
Exemplo n.º 3
0
        public LayerDialog(Layers _layers)
        {
            InitializeComponent();
            for (int i = 0; i < _layers.Count; i++)
            {
                LayerEdit le = new LayerEdit();
                le.LayerName    = ((Layer)_layers[i]).LayerName;
                le.LayerVisible = ((Layer)_layers[i]).IsVisible;
                le.LayerActive  = ((Layer)_layers[i]).IsActive;

                layerList.Add(le);
            }
            dgvLayers.DataSource            = layerList;
            dgvLayers.Columns[0].HeaderText = "Layer Name";
            dgvLayers.Columns[1].HeaderText = "New Layer";
            dgvLayers.Columns[2].HeaderText = "Active";
            dgvLayers.Columns[3].HeaderText = "Deleted";
            dgvLayers.Columns[4].HeaderText = "Visible";
        }
Exemplo n.º 4
0
		public LayerDialog(Layers _layers)
		{
			InitializeComponent();
			for (int i = 0; i < _layers.Count; i++)
			{
				LayerEdit le = new LayerEdit();
				le.LayerName = ((Layer)_layers[i]).LayerName;
				le.LayerVisible = ((Layer)_layers[i]).IsVisible;
				le.LayerActive = ((Layer)_layers[i]).IsActive;

				layerList.Add(le);
			}
			dgvLayers.DataSource = layerList;
			dgvLayers.Columns[0].HeaderText = "Layer Name";
			dgvLayers.Columns[1].HeaderText = "New Layer";
			dgvLayers.Columns[2].HeaderText = "Active";
			dgvLayers.Columns[3].HeaderText = "Deleted";
			dgvLayers.Columns[4].HeaderText = "Visible";
		}