Add report exporting to clipboard

Closes #1141
cleaner look maybe in the future (colorized)
This commit is contained in:
Kurt 2017-05-16 21:15:32 -07:00
parent 4e1a520b0a
commit 7edc2eb14f

View file

@ -2980,7 +2980,15 @@ namespace PKHeX.WinForms
}
if (tabs)
updateLegality(la, skipMoveRepop);
WinFormsUtil.Alert(la.Report(verbose));
var report = la.Report(verbose);
if (verbose)
{
var dr = WinFormsUtil.Prompt(MessageBoxButtons.YesNo, report, "Copy report to Clipboard?");
if (dr == DialogResult.Yes)
Clipboard.SetText(report);
}
else
WinFormsUtil.Alert(report);
}
private void updateLegality(LegalityAnalysis la = null, bool skipMoveRepop = false)
{