Esempio n. 1
0
 public frmImageSearch(OleDbCommand oraCmd, frmImage frmImage)
 {
     InitializeComponent();
     this.m_oraCmd = oraCmd;
     this.m_frmImage = frmImage;
     string sqlText = "select distinct imageset from imageset";
     m_oraCmd.CommandText = sqlText;
     OleDbDataReader dr = m_oraCmd.ExecuteReader();
     while (dr.Read())
     {
         this.comboBox1.Items.Add(dr["imageset"].ToString());
     }
     dr.Close();
 }
Esempio n. 2
0
        public frmImageSearch(OleDbCommand oraCmd, frmImage frmImage)
        {
            InitializeComponent();
            this.m_oraCmd   = oraCmd;
            this.m_frmImage = frmImage;
            string sqlText = "select distinct imageset from imageset";

            m_oraCmd.CommandText = sqlText;
            OleDbDataReader dr = m_oraCmd.ExecuteReader();

            while (dr.Read())
            {
                this.comboBox1.Items.Add(dr["imageset"].ToString());
            }
            dr.Close();
        }
Esempio n. 3
0
        public void DBToolLibrary(string toolName)
        {
            switch (toolName)
            {
                case "SHPToSDE":
                    SpatialDataBase.frmSHPToSDE frmSHP = new frmSHPToSDE(m_gcon, this.m_frmMian.OraCmd);
                    frmSHP.ShowDialog();
                    m_frmMian.ShowSDETree();
                    break;
                case "RasterToSDE":
                    SpatialDataBase.frmRasterToSDE frmRaster = new frmRasterToSDE(m_gcon, this.m_frmMian.OraCmd);
                    frmRaster.ShowDialog();
                    m_frmMian.ShowSDETree();
                    break;
                case "Search":
                    SpatialDataBase.frmSearchDB frmSearch = new frmSearchDB(m_gcon, this.m_mapControl, this.m_frmMian.OraCmd);
                    frmSearch.ShowDialog();
                    break;

                //case "SheetMetaData":
                //    SpatialDataBase.frmSheetMetaData frmMetaData = new frmSheetMetaData(m_workSpace, this.m_frmMian.OraCmd);
                //    frmMetaData.Show();
                //    break;
                case "ImageManage":
                    SpatialDataBase.frmImage frmIm = new frmImage(this.m_frmMian.OraCmd);
                    frmIm.ShowDialog();
                    break;

            }
        }