Exemplo n.º 1
0
 public override void Run()
 {
     _attrPad      = WorkbenchSingleton.Workbench.GetPad(typeof(AttributesPad)).PadContent.Control as GIS.Common.Dialogs.Attributes;
     _featureLayer = _attrPad.GetLayer();
     _dataGridView = _attrPad.GetDgv();
     if (_featureLayer == null || _dataGridView == null)
     {
         MessageBox.Show("please add a attribute table");
         return;
     }
     CreateNewColumn();
 }
Exemplo n.º 2
0
        public override void Run()
        {
            DataTable    dataTable = _attributes.GetTable();
            DataGridView thisDgv   = _attributes.GetDgv();

            if (_map.Layers.Count >= 1 && dataTable != null && thisDgv != null)
            {
                //FieldCaculator fieldCaculator = new FieldCaculator(_map, dataTable,thisDgv);
                //fieldCaculator.ShowDialog();

                _attributes.FieldCalculationExecute();
            }
            else
            {
                MessageBox.Show("not attribute table");
            }
        }
Exemplo n.º 3
0
        public override void Run()
        {
            DataTable    thisDgv          = _attributes.GetTable();
            DataGridView thisDataGridView = _attributes.GetDgv();
            FeatureLayer thisLayer        = _attributes.GetLayer();


            if (thisDgv != null && thisDataGridView != null && thisLayer != null)
            {
                SQLBulider filter = new SQLBulider(thisDgv, thisDataGridView, thisLayer);
                filter.ShowDialog();
            }
            else
            {
                MessageBox.Show("please add attribute table");
            }
        }