MyMessageBox.cs 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Runtime.CompilerServices;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. using System.Windows.Forms;
  11. namespace GWSocketClient
  12. {
  13. public partial class MyMessageBox : Form
  14. {
  15. private string msg;
  16. public static void ShowMessageBox(string msg = "")
  17. {
  18. new MyMessageBox(msg).ShowDialog();
  19. }
  20. public MyMessageBox(string msg)
  21. {
  22. InitializeComponent();
  23. this.msg = msg;
  24. }
  25. private void MyMessageBox_FormClosing(object sender, FormClosingEventArgs e)
  26. {
  27. }
  28. private void buttonClipboard_Click(object sender, EventArgs e)
  29. {
  30. Clipboard.SetText(
  31. "http://download.microsoft.com/download/7/0/3/703ffbcb-dc0c-4e19-b0da-1463960fdcdb/AccessDatabaseEngine.exe \n" +
  32. msg);
  33. this.Close();
  34. }
  35. private void buttonOK_Click(object sender, EventArgs e)
  36. {
  37. this.Close();
  38. }
  39. private void buttonCancle_Click(object sender, EventArgs e)
  40. {
  41. this.Close();
  42. }
  43. private void MyMessageBox_Load(object sender, EventArgs e)
  44. {
  45. }
  46. }
  47. }