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.

37 lines
956B

  1. using System.Windows.Forms;
  2. namespace TBMM
  3. {
  4. public partial class CustomMessageBox : Form
  5. {
  6. public bool ApplyToAll { get; private set; }
  7. public CustomMessageBox()
  8. {
  9. InitializeComponent();
  10. yesbtn.Click += (sender, e) =>
  11. {
  12. DialogResult = DialogResult.Yes;
  13. ApplyToAll = applyToAll.Checked;
  14. Close();
  15. };
  16. nobtn.Click += (sender, e) =>
  17. {
  18. DialogResult = DialogResult.No;
  19. ApplyToAll = applyToAll.Checked;
  20. Close();
  21. };
  22. /*cancelbtn.Click += (sender, e) =>
  23. {
  24. DialogResult = DialogResult.Cancel;
  25. Close();
  26. };*/
  27. }
  28. public CustomMessageBox(string message, string caption) : this()
  29. {
  30. content.Text = message;
  31. Text = caption;
  32. }
  33. }
  34. }