Techblox Mod Manager / Launcher
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 line
1.2KB

  1. using GCMM.Properties;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Data;
  6. using System.Drawing;
  7. using System.IO;
  8. using System.Linq;
  9. using System.Text;
  10. using System.Text.RegularExpressions;
  11. using System.Threading.Tasks;
  12. using System.Windows.Forms;
  13. namespace GCMM
  14. {
  15. public partial class CustomMessageBox : Form
  16. {
  17. public bool ApplyToAll { get; private set; }
  18. public CustomMessageBox()
  19. {
  20. InitializeComponent();
  21. yesbtn.Click += (sender, e) =>
  22. {
  23. DialogResult = DialogResult.Yes;
  24. ApplyToAll = applyToAll.Checked;
  25. Close();
  26. };
  27. nobtn.Click += (sender, e) =>
  28. {
  29. DialogResult = DialogResult.No;
  30. ApplyToAll = applyToAll.Checked;
  31. Close();
  32. };
  33. /*cancelbtn.Click += (sender, e) =>
  34. {
  35. DialogResult = DialogResult.Cancel;
  36. Close();
  37. };*/
  38. }
  39. public CustomMessageBox(string message, string caption) : this()
  40. {
  41. content.Text = message;
  42. Text = caption;
  43. }
  44. }
  45. }