private void buttonCheckOrGo_Click(object sender, System.EventArgs e) { StartupInfo startup = new StartupInfo(); startup.DestinationRootDirectory = comboDestDir.Text + Path.DirectorySeparatorChar; startup.SourceDirectory = comboBackupDir.Text + Path.DirectorySeparatorChar; startup.PreviousDateLimit = (Int32)numericLimitDay.Value; startup.IgnoreError = checkOnErrorStop.Checked; startup.DumpProgress = new DumpProgressHandler(DumpProgressHandled); startup.Error = new ErrorHandler(ErrorHandled); startup.CheckMode = (sender == buttonCheck); if (textExclude.Text.Trim() != "") { startup.Exclude = new Regex(textExclude.Text.Trim(), RegexOptions.IgnoreCase); } listViewLog.Items.Clear(); listViewLog.BeginUpdate(); Dumper.Copy(startup); listViewLog.EndUpdate(); statusBar.Text = "ファイルのバックアップが完了しました"; }