コード例 #1
0
        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();
            }
        }
コード例 #2
0
        internal static void Warning(this string t)
        {
            MyMsgBox msg = new MyMsgBox("Warning", t, t, MsgMode.Warning);

            msg.ShowDialog();
        }