年度变更建库软件5.0版本
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

93 lines
2.6 KiB

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using KGIS.Plugin.LayerProperty.View.UC_Controls;
using ESRI.ArcGIS.Geodatabase;
using ESRI.ArcGIS.Carto;
namespace KGIS.Plugin.LayerProperty.View
{
public partial class FormSQLCreator : XtraForm
{
private UCSQLCreator sqlCre;
private string sql;
public string SQL
{
get
{
if (this.sqlCre != null)
{
this.sql = this.sqlCre.SQL;
}
return this.sql;
}
set
{
this.sql = value;
if (this.sqlCre != null)
{
this.sqlCre.SQL = this.sql;
}
}
}
public FormSQLCreator()
{
InitializeComponent();
}
public void InitForm(IFeatureLayer feaLyr)
{
try
{
if (this.sqlCre == null)
{
this.sqlCre = new UCSQLCreator();
base.Width = this.sqlCre.Width + 15;
base.Height = this.sqlCre.Height + 70;
this.sqlCre.Dock = DockStyle.Fill;
this.panelControl1.Controls.Add(this.sqlCre);
}
this.sqlCre.InitUC(feaLyr);
}
catch (Exception ex)
{
//RdbUtil.AddException(ex);
}
}
public void InitForm(IFeatureClass feacls)
{
try
{
if (this.sqlCre == null)
{
this.sqlCre = new UCSQLCreator();
base.Width = this.sqlCre.Width + 15;
base.Height = this.sqlCre.Height + 70;
this.sqlCre.Dock = DockStyle.Fill;
this.panelControl1.Controls.Add(this.sqlCre);
}
this.sqlCre.InitUC(feacls);
}
catch (Exception ex)
{
//RdbUtil.AddException(ex);
}
}
private void btnOK_Click(object sender, System.EventArgs e)
{
base.DialogResult = DialogResult.OK;
base.Close();
}
private void btnCancel_Click(object sender, System.EventArgs e)
{
base.DialogResult = DialogResult.Cancel;
base.Close();
}
}
}