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
41 lines
978 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
using System.Configuration;
|
|
using ManagementSystem.Utility;
|
|
|
|
|
|
namespace ManagementSystem
|
|
{
|
|
public partial class TestForm : Form
|
|
{
|
|
public TestForm()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void TestForm_Load(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void button1_Click(object sender, EventArgs e)
|
|
{
|
|
InputDialog input = new InputDialog();
|
|
input.lbQuestionMessage.Text = "請輸入一個數字!";
|
|
input.StartPosition = FormStartPosition.CenterParent;
|
|
DialogResult dr = input.ShowDialog();
|
|
if (dr == DialogResult.OK)
|
|
{
|
|
MessageBox.Show(input.GetMsg());
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|