コード例 #1
0
        private void Form4_Load(object sender, EventArgs e)
        {
            try
            {
                m_sampleRun = new SampleRun1(m_workspace, m_srcDatasourceInfo);

                m_sampleRun.CopyDatasource(m_dstDatasourceInfo);


                InitializeDatasetView();

                this.FormClosing += new FormClosingEventHandler(FormMain_FormClosing);

                this.deleteCurrent.Click += new EventHandler(deleteCurrent_Click);

                this.changeName.Enabled          = false;
                this.changeName.Click           += new EventHandler(changeName_Click);
                this.newNameTextBox.TextChanged += new EventHandler(newNameTextBox_TextChanged);

                this.createDataset.Enabled          = false;
                this.createDataset.Click           += new EventHandler(createDataset_Click);
                this.createDatasetName.TextChanged += new EventHandler(createDatasetName_TextChanged);

                this.datasetView.NodeMouseClick += new TreeNodeMouseClickEventHandler(datasetView_NodeMouseClick);
                this.datasetView.LostFocus      += new EventHandler(datasetView_LostFocus);
            }
            catch (Exception ex)
            {
                Trace.WriteLine(ex.Message);
            }
        }
コード例 #2
0
        public 数据集管理()
        {
            try
            {
                InitializeComponent();

                InitializeDatasetTypeCombox();
                m_workspace         = new Workspace();
                m_srcDatasourceInfo = new DatasourceConnectionInfo("D:/World/world.udb", "world", "");
                m_dstDatasourceInfo = new DatasourceConnectionInfo("D:/World/copyworld.udb", "copyworld", "");
                m_sampleRun         = null;
            }
            catch (Exception ex)
            {
                Trace.WriteLine(ex.Message);
            }
        }