Exemplo n.º 1
0
 private void 打开属性表ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (attributeTable.IsDisposed)
     {
         attributeTable = new AttributeTable();
     }
     attributeTable.BindData(data.layers[data.index].featureClass);
     attributeTable.Show();
 }
Exemplo n.º 2
0
 private static int constructCount = 0; //第一次调用构造函数是FeatureBox,第二次是RecordBox
 public MLFeatureBox()                  //接收从mainForm传递来的dataFrame
 {
     data           = MLMainForm.dataFrame;
     attributeTable = new AttributeTable();
     InitializeComponent();
     if (constructCount == 0)
     {
         this.MouseClick += new System.Windows.Forms.MouseEventHandler(this.showBoxMenu);
         ++constructCount;
     }
 }