Example #1
0
 public override void Run()
 {
     _attrPad      = WorkbenchSingleton.Workbench.GetPad(typeof(AttributesPad)).PadContent.Control as GIS.Common.Dialogs.Attributes;
     _featureLayer = _attrPad.GetLayer();
     if (_featureLayer == null)
     {
         MessageBox.Show("please add a attributes table");
         return;
     }
     renameField();
 }
Example #2
0
        public override void Run()
        {
            ILegendItem selectedItem = (GIS.FrameWork.Application.App.Legend as GIS.Common.Dialogs.Legend).SelectedLegendMenuItem;

            GIS.Common.Dialogs.Attributes attPad = WorkbenchSingleton.Workbench.GetPad(typeof(AttributesPad)).PadContent.Control as GIS.Common.Dialogs.Attributes;
            if (selectedItem != null)
            {
                attPad.RemovePage(selectedItem);
                GIS.FrameWork.Application.App.Map.MapFrame.Remove(selectedItem as ILayer);
            }
        }
Example #3
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();
 }
Example #4
0
        public override void Run()
        {
            GIS.Common.Dialogs.Attributes attPad = WorkbenchSingleton.Workbench.GetPad(typeof(AttributesPad)).PadContent.Control as GIS.Common.Dialogs.Attributes;
            GIS.Common.Dialogs.Legend     legend = WorkbenchSingleton.Workbench.GetPad(typeof(LegendPad)).PadContent.Control as GIS.Common.Dialogs.Legend;

            if (legend.SelectedLegendMenuItem != null)
            {
                //if(!attPad.)
                //{
                WorkbenchSingleton.Workbench.GetPad(typeof(AttributesPad)).BringPadToFront();

                //}
                //else
                //{
                attPad.CreateNewPage(legend.SelectedLegendMenuItem.LegendText);
                //}
            }
            else
            {
                MessageBox.Show("please AddPage");
            }
        }
Example #5
0
 public AttributesPad()
 {
     panel = new Attributes(map, legend);
 }