示例#1
0
        public Form1()
        {
            InitializeComponent();

            backup = new BackupUtil();
            backupUtilStartThread    = null;
            logFileUtil              = new LogFileUtil();
            chooseFolderTimerRunning = false;
        }
示例#2
0
 private void zipFiles(string destFile, string dir)
 {
     try
     {
         BackupUtil.zipUpFiles(destFile, dir);
     }
     catch (DllNotFoundException ex)
     {
         MessageBox.Show("Could Not Load DotNetZip.dll. Did you forget to copy it?",
                         "DLL Not Found Exception", MessageBoxButtons.OK);
         Console.WriteLine("DLL Could Not be loaded / found. \n" + ex.Message +
                           "\n" + ex.ToString());
     }
     catch (Exception ex)
     {
         MessageBox.Show("An Error occurred while zipping up files.",
                         "Exception", MessageBoxButtons.OK);
         Console.WriteLine("Error occurred while trying to zip up files to " + destFile + ". \n" + ex.Message +
                           "\n" + ex.ToString());
     }
 }