protected override void OnDeactivated(object sender, EventArgs args) { if (MainView != null) { MainView.ViewDeactivated(); } TouchPad.Instance.AppDeactivated(); AppDeactivated?.Invoke(); }
/// <summary> /// Handles application activated/deactivated event. /// </summary> protected virtual void HandleActivateApp(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam, ref bool handled) { var isActivated = Convert.ToBoolean(wParam.ToInt32()); if (isActivated) { AppActivated?.Invoke(_window, EventArgs.Empty); } else { AppDeactivated?.Invoke(_window, EventArgs.Empty); } }
private void GameForm_ActivateActions(SDL.SDL_WindowEvent e) { AppDeactivated?.Invoke(this, EventArgs.Empty); }
/// <summary> /// Raises the App Deactivated event /// </summary> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void OnAppDeactivated(EventArgs e) { AppDeactivated?.Invoke(this, e); }