예제 #1
0
        public override void OnClick()
        {
            frmAttributeQueryBuilder queryBuilder = new frmAttributeQueryBuilder(_context)
            {
                Map = _context.MapControl.Map as IBasicMap
            };

            queryBuilder.ShowDialog();
        }
예제 #2
0
        private void btnSQL_Click(object sender, EventArgs e)
        {
            frmAttributeQueryBuilder builder = new frmAttributeQueryBuilder
            {
                Table       = this.igeoFeatureLayer_0.FeatureClass as ITable,
                WhereCaluse = this.iannotateLayerProperties_0.WhereClause
            };

            if (builder.ShowDialog() == DialogResult.OK)
            {
                this.iannotateLayerProperties_0.WhereClause = builder.WhereCaluse;
            }
        }
예제 #3
0
        private void btnQueryDialog_Click(object sender, EventArgs e)
        {
            frmAttributeQueryBuilder builder = new frmAttributeQueryBuilder
            {
                Table       = this.Table,
                WhereCaluse = this.memoEdit.Text
            };

            if (builder.ShowDialog() == DialogResult.OK)
            {
                this.memoEdit.Text = builder.WhereCaluse;
            }
        }
예제 #4
0
 private void btnQueryDef_Click(object sender, EventArgs e)
 {
     if (this.igxObject_0 != null)
     {
         frmAttributeQueryBuilder builder = new frmAttributeQueryBuilder
         {
             Table       = (this.igxObject_0 as IGxDataset).Dataset as ITable,
             WhereCaluse = this.txtWhere.Text
         };
         if (builder.ShowDialog() == DialogResult.OK)
         {
             this.txtWhere.Text = builder.WhereCaluse;
         }
     }
 }
예제 #5
0
        private void btnSQL_Click(object sender, EventArgs e)
        {
            frmAttributeQueryBuilder builder = new frmAttributeQueryBuilder
            {
                Table       = this.igeoFeatureLayer_0.FeatureClass as ITable,
                WhereCaluse = this.iannotateLayerProperties_0.WhereClause
            };

            if (builder.ShowDialog() == DialogResult.OK)
            {
                this.iannotateLayerProperties_0.WhereClause = builder.WhereCaluse;
                this.bool_3 = true;
                AnnotateLayerPropertiesWrap selectedItem = this.cboClass.SelectedItem as AnnotateLayerPropertiesWrap;
                selectedItem.Update = true;
            }
        }
 private void btnQueryDialog_Click(object sender, EventArgs e)
 {
     if (this.itableDefinition_0 != null)
     {
         frmAttributeQueryBuilder builder = new frmAttributeQueryBuilder
         {
             Table       = this.itableDefinition_0 as ITable,
             WhereCaluse = this.memoEdit.Text
         };
         if (builder.ShowDialog() == DialogResult.OK)
         {
             this.memoEdit.Text = builder.WhereCaluse;
             this.bool_0        = true;
         }
     }
 }
예제 #7
0
 private void btnQueryDialog_Click(object sender, EventArgs e)
 {
     if (this.cboLayer.SelectedIndex >= 0)
     {
         this.btnQueryDialog.Enabled = true;
         IFeatureLayer            layer   = (this.cboLayer.SelectedItem as LayerObject).Layer as IFeatureLayer;
         frmAttributeQueryBuilder builder = new frmAttributeQueryBuilder
         {
             CurrentLayer = layer,
             WhereCaluse  = this.memoEdit.Text
         };
         if (builder.ShowDialog() == DialogResult.OK)
         {
             this.memoEdit.Text = builder.WhereCaluse;
         }
     }
 }