Beispiel #1
0
        public static IndihiangDataExport Create(DataExportDestination mode)
        {
            if (mode == DataExportDestination.SQLServer)
            {
                return(new SQLServerDataExport());
            }
            //if (mode == DataExportDestination.Oracle)
            //    return new OracleDataExport();

            return(null);
        }
Beispiel #2
0
        private void btnExport_Click(object sender, EventArgs e)
        {
            btnExport.Enabled = false;
            btnTest.Enabled = false;
            btnCancel.Enabled = false;

            _svr = txtDatabaseServer.Text;
            _db = txtDbName.Text;
            _uid = txtUserName.Text;
            _pwd = txtPassword.Text;

            if (cboDbServer.SelectedItem.ToString() == "SQL Server")
                _target = DataExportDestination.SQLServer;

            _proggress = 0;
            timer1.Start();
            backgroundWorker1.RunWorkerAsync(_logFiles);
        }