private static void Message(string text, MessageBoxImage icon) { MessageBox.Show(text, icon.ToString(), MessageBoxButton.OK, icon); }
//============================================== // Misc //============================================== #region Misc public static void ExitWithMessage(string message, MessageBoxImage type, string title = null) { MessageBox.Show(message, title.IsNullOrEmpty() ? type.ToString() : title, MessageBoxButton.OK, type); Current.Shutdown(); }