private static void HardwareButtonsOnBackPressed(object sender, BackPressedEventArgs backPressedEventArgs) { if (IsAnyOpen()) { var last = _listOfWindows.Last(); var res = new EveWindowClosingArgs(); last.OnBackButton(res); backPressedEventArgs.Handled = true; if (res.Cancel) { return; } last.InnerClose(EWindowCloseResult.AutoOrUserCancel, null, false); } }
private void OnBackButton(EveWindowClosingArgs args) { if (CancelPressedBackButton()) { args.Cancel = true; return; } RaiseOnClosing(this, args); }
protected virtual void RaiseOnClosing(object o, EveWindowClosingArgs args) { WindowClosing handler = OnClosing; if (handler != null) handler(o, args); }