示例#1
0
        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;
            }
        }
示例#2
0
		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;
			}
		}