using System; using Cyberpipe.BackUpDB; using DevComponents.DotNetBar; namespace Cyberpipe { public partial class FrmBACKORACLE : Office2007Form { public FrmBACKORACLE() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { //备份 buttonBackOracle.Enabled = false; textBox1.AppendText("数据库备份进行中,请等待..."); GSOBackOracle bkupOracle = new GSOBackOracle(Utility.backupurl); bkupOracle.Timeout = 1000 * 1000; textBox1.Text = bkupOracle.BackOracle(Utility.dbdatabase, Utility.userID, Utility.DBPassword, textBoxDirectoryPath.Text.Trim());//"C:\\backup"); buttonBackOracle.Enabled = true; } private void buttonclose_Click(object sender, EventArgs e) { Close(); } private void FrmBACKORACLE_Load(object sender, EventArgs e) { textBoxDirectoryPath.Text = Utility.backuppath; } } }