private void diffExec_Click(object sender, EventArgs e) { // 入力値確認 var source = sourceFolder.Text; if (!checkFolder(source, "比較元")) return; var target = targetFolder.Text; if (!checkFolder(target, "納品物")) return; var output = outputFolder.Text; if (!checkFolder(output, "出力先")) return; var differ = new Differ(source, target, output); differ.Exec(); resultMessage(differ); }
private void resultMessage(Differ differ) { var message = "削除対象はありません"; if (differ.DeletedList.Count > 0) message = string.Format("以下が削除対象になります。\r\n{0}", string.Join("\r\n", differ.DeletedList.ToArray()) ); MessageBox.Show(message , "削除対象" , MessageBoxButtons.OK , MessageBoxIcon.Information ); }