基本的資料介面輸入與輸出資料。 主程式: private void button1_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(namebox.Text) || string.IsNullOrWhiteSpace(textBox2.Text) || string.IsNullOrWhiteSpace(textBox3.Text) || string.IsNullOrWhiteSpace(textBox4.Text)) { MessageBox.Show("請再次確認資料"); } else { Student_data A1 = new Student_data(namebox.Text, (int)numericUpDown1.Value, (int)numericUpDown2.Value, (int)numericUpDown3.Value, (int)numericUpDown4.Value, (int)numericUpDown6.Value, (int)numericUpDown5.Value, Int32.Parse(textBox2.Text), Int32.Parse(textBox3.Text), Int32.Parse(textBox4.Text)); MessageBox.Show(A1.result(), "成績查詢"); } } private void button2_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(namebox.Text) || string.IsNullOrWhiteSpace(textBo