/// <summary> /// User wants to quit. Confirms and exits /// </summary> private void onBack() { if (_isDirty) { if (DialogUtils.Confirm(this, R.GetString("SaveSettings"))) { _previewScreenInterface.SaveSettings(); } else { Context.AppWindowPosition = _initialWindowPosition; } } Windows.CloseForm(this); }
/// <summary> /// User wants to quit. Confirms and exits /// </summary> private void onBack() { Log.Debug("chose back button."); if (_isDirty) { if (DialogUtils.Confirm(this, Resources.SaveSettings)) { _previewScreenInterface.SaveSettings(); } else { Context.AppWindowPosition = _initialWindowPosition; } } Windows.CloseForm(this); }