void avatar_MouseDown(object sender, MouseButtonEventArgs e) { if (count > 1) { return; } count++; UMessageBox.Show("Gaia", "大哥是萝莉?"); }
/// <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()); }