Beispiel #1
0
        /// <summary>
        /// 静态方法 模拟MESSAGEBOX.Show方法
        /// </summary>
        /// <param name="title">标题</param>
        /// <param name="msg">消息</param>
        /// <returns></returns>
        public static bool?Show(string title, string msg)
        {
            var msgBox = new UMessageBox();

            msgBox.Title   = title;
            msgBox.Message = msg;
            return(msgBox.ShowDialog());
        }
Beispiel #2
0
 private void button_Click(object sender, RoutedEventArgs e)
 {
     if (UMessageBox.Show("提示", "消息") == true)
     {
     }
 }