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.

41 lines
978 B

  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.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. using System.Configuration;
  11. using ManagementSystem.Utility;
  12. namespace ManagementSystem
  13. {
  14. public partial class TestForm : Form
  15. {
  16. public TestForm()
  17. {
  18. InitializeComponent();
  19. }
  20. private void TestForm_Load(object sender, EventArgs e)
  21. {
  22. }
  23. private void button1_Click(object sender, EventArgs e)
  24. {
  25. InputDialog input = new InputDialog();
  26. input.lbQuestionMessage.Text = "請輸入一個數字!";
  27. input.StartPosition = FormStartPosition.CenterParent;
  28. DialogResult dr = input.ShowDialog();
  29. if (dr == DialogResult.OK)
  30. {
  31. MessageBox.Show(input.GetMsg());
  32. }
  33. }
  34. }
  35. }