public static void Notify(this string t) { if (Properties.Settings.Default.UseSpeakInsteadOfMsgBox) { t.Say(); } else { Debug.WriteLine("----------------***************************************-----------------------"); Debug.WriteLine(t); Debug.WriteLine("----------------***************************************-----------------------"); MyMsgBox msg = new MyMsgBox("Information", t, t, MsgMode.Info); msg.ShowDialog(); } }
internal static void Warning(this string t) { MyMsgBox msg = new MyMsgBox("Warning", t, t, MsgMode.Warning); msg.ShowDialog(); }