コード例 #1
0
 private static void Message(string text, MessageBoxImage icon)
 {
     MessageBox.Show(text, icon.ToString(), MessageBoxButton.OK, icon);
 }
コード例 #2
0
ファイル: App.xaml.cs プロジェクト: TheMarkie/MarkieUtilities
 //==============================================
 // 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();
 }