Esempio n. 1
0
        private async void Close()
        {
            var result = await _dialogService.AskQuestionAsync(_languageService.GetValue("ExitApplication"),
                                                               _languageService.GetValue("AreYouSureYouWantToExitTheApplication"));

            if (result == MessageDialogResult.Affirmative)
            {
                ClosingRequest?.Invoke(this, EventArgs.Empty);
            }
        }
Esempio n. 2
0
 protected void OnClosingRequest()
 {
     ClosingRequest?.Invoke(this, EventArgs.Empty);
 }
 protected void CloseView()
 {
     ClosingRequest?.Invoke(this, EventArgs.Empty);
 }