Newer
Older
EMS_SZ / FrmBACKORACLE.cs
root on 21 Mar 2016 1 KB first
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.IO;
using System.Xml;
using DevComponents.DotNetBar;

namespace Cyberpipe
{
    public partial class FrmBACKORACLE : Office2007Form
    {
        public FrmBACKORACLE()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            ////先判断有文件夹,若无,则创建
            //if(!File.Exists(textBoxDirectoryPath.Text.Trim())){
            //    Directory.CreateDirectory(textBoxDirectoryPath.Text.Trim());
            //} 
            ////备份
            //buttonBackOracle.Enabled = false;

            //textBox1.AppendText("数据库备份进行中,请等待...");

            //BackUpDB.GSOBackOracle bkupOracle = new BackUpDB.GSOBackOracle(Utility.backupurl);

            //bkupOracle.Timeout = 1000 * 1000;

            //textBox1.Text = bkupOracle.BackOracle(Utility.dbdatabase, Utility.userID, Utility.DBPassword, textBoxDirectoryPath.Text);//"C:\\backup");
             
            //buttonBackOracle.Enabled = true;
          
        }

        private void buttonclose_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void FrmBACKORACLE_Load(object sender, EventArgs e)
        {
            textBoxDirectoryPath.Text = Utility.backuppath;
        }


    }
}