예제 #1
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");
            }
        }
예제 #2
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");
            }
        }