private void MenuSettingsOverlaySettings_Click(object sender, EventArgs e) { frmOverlaySetting frm = new frmOverlaySetting(); frm.OnOverlayChanged += delegate(bool Active, int X, int Y) { if (Active == false) { OverlayDestroy(); } else { if (mOverlay == null) { OverlayInitialize(); } if (mOverlay != null) { mOverlay.Position = new Point(X, Y); } } }; if (frm.ShowDialog() != DialogResult.OK) { OverlayDestroy(); return; } }
private void MenuSettingsOverlaySettings_Click( object sender, EventArgs e ) { frmOverlaySetting frm = new frmOverlaySetting(); frm.OnOverlayChanged += delegate( bool Active, int X, int Y ) { if( Active == false ) OverlayDestroy(); else { if( mOverlay == null ) OverlayInitialize(); if( mOverlay != null ) mOverlay.Position = new Point( X, Y ); } }; if( frm.ShowDialog() != DialogResult.OK ) { OverlayDestroy(); return; } }