1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-07-05 09:28:56 +00:00

Placate the static code analyzer

This commit is contained in:
Andy McFadden 2018-09-30 21:25:26 -07:00
parent b9558c58d4
commit c11af41019
5 changed files with 12 additions and 11 deletions

View File

@ -2805,7 +2805,7 @@ namespace SourceGen.AppForms {
// Create and show modeless dialog. This one is "always on top" by default,
// to allow the user to click around to various points.
mHexDumpDialog = new Tools.HexDumpViewer(mProject.FileData, mOutputFormatter);
mHexDumpDialog.OnWindowClosing += (arg) => {
mHexDumpDialog.OnWindowClosing += (sender1, e1) => {
Debug.WriteLine("Hex dump dialog closed");
//showHexDumpToolStripMenuItem.Checked = false;
mHexDumpDialog = null;
@ -2836,7 +2836,7 @@ namespace SourceGen.AppForms {
// Show or hide the modeless dialog.
if (mAsciiChartDialog == null) {
Tools.AsciiChart dlg = new Tools.AsciiChart();
dlg.OnWindowClosing += (arg) => {
dlg.OnWindowClosing += (sender1, e1) => {
Debug.WriteLine("ASCII chart closed");
aSCIIChartToolStripMenuItem.Checked = false;
mAsciiChartDialog = null;
@ -4259,7 +4259,7 @@ namespace SourceGen.AppForms {
Tools.ShowText dlg = new Tools.ShowText();
dlg.Title = "Undo/Redo History";
dlg.BodyText = mProject.DebugGetUndoRedoHistory();
dlg.OnWindowClosing += (arg) => {
dlg.OnWindowClosing += (sender1, e1) => {
Debug.WriteLine("Undo/redo dialog closed");
showUndoRedoHistoryToolStripMenuItem.Checked = false;
mShowUndoRedoHistoryDialog = null;
@ -4285,7 +4285,7 @@ namespace SourceGen.AppForms {
} else {
dlg.BodyText = mGenerationLog.WriteToString();
}
dlg.OnWindowClosing += (arg) => {
dlg.OnWindowClosing += (sender1, e1) => {
Debug.WriteLine("Analyzer output dialog closed");
showAnalyzerOutputToolStripMenuItem.Checked = false;
mShowAnalyzerOutputDialog = null;
@ -4307,7 +4307,7 @@ namespace SourceGen.AppForms {
Tools.ShowText dlg = new Tools.ShowText();
dlg.Title = "Analysis Timers";
dlg.BodyText = "(no data yet)";
dlg.OnWindowClosing += (arg) => {
dlg.OnWindowClosing += (sender1, e1) => {
Debug.WriteLine("Analysis timers dialog closed");
showAnalysisTimersToolStripMenuItem.Checked = false;
mShowAnalysisTimersDialog = null;

View File

@ -38,6 +38,7 @@
<DefineConstants>TRACE;DEBUG</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<RunCodeAnalysis>false</RunCodeAnalysis>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>

View File

@ -31,7 +31,7 @@ namespace SourceGen.Tools {
/// Subscribe to this to be notified when the dialog closes.
/// </summary>
public event WindowClosing OnWindowClosing;
public delegate void WindowClosing(object sender);
public delegate void WindowClosing(object sender, EventArgs e);
public AsciiChart() {
InitializeComponent();
@ -48,7 +48,7 @@ namespace SourceGen.Tools {
private void AsciiChart_FormClosed(object sender, FormClosedEventArgs e) {
if (OnWindowClosing != null) {
OnWindowClosing(this);
OnWindowClosing(this, e);
}
}

View File

@ -62,7 +62,7 @@ namespace SourceGen.Tools {
/// Subscribe to this to be notified when the dialog closes.
/// </summary>
public event WindowClosing OnWindowClosing;
public delegate void WindowClosing(object sender);
public delegate void WindowClosing(object sender, EventArgs e);
public HexDumpViewer(byte[] data, Formatter formatter) {
@ -127,7 +127,7 @@ namespace SourceGen.Tools {
private void HexDumpViewer_FormClosed(object sender, FormClosedEventArgs e) {
if (OnWindowClosing != null) {
OnWindowClosing(this);
OnWindowClosing(this, e);
}
}

View File

@ -50,7 +50,7 @@ namespace SourceGen.Tools {
/// Subscribe to this to be notified when the dialog closes.
/// </summary>
public event WindowClosing OnWindowClosing;
public delegate void WindowClosing(object sender);
public delegate void WindowClosing(object sender, EventArgs e);
public ShowText() {
InitializeComponent();
@ -71,7 +71,7 @@ namespace SourceGen.Tools {
private void ShowText_FormClosed(object sender, FormClosedEventArgs e) {
if (OnWindowClosing != null) {
OnWindowClosing(this);
OnWindowClosing(this, e);
}
}
}