Пример #1
0
        private static void loginManagerVM_Closed(ILoginVM sender, ViewModelCloseResult e)
        {
            var choice = _messengerService.ShowMessageBox("Warning",
                                                          "Application will close, do you want to close application?",
                                                          MessageBoxButtons.OKCancel);

            if (choice == DialogResult.OK)
            {
                _messengerService.ShutDownApplication();
            }
        }