示例#1
0
文件: VC_Kids.cs 项目: Osos8128/oop1
 private void button2_Click(object sender, EventArgs e)
 {
     if (textBox2.Text != "")
     {
         VC_AddForm AKF  = new VC_AddForm("Kids", textBox2.Text);
         string[]   Atts = { "Name", "Birthdate", "Gender", "Address", "Parent_Email", "Phone_Number", "ClassNo" };
         AKF.SetDesign(Atts, 0);
         AKF.Show();
     }
     else
     {
         MessageBox.Show("Enter ID");
     }
 }
示例#2
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (textBox2.Text != "")
     {
         VC_AddForm AEF  = new VC_AddForm("Eventss", textBox2.Text);
         string[]   Atts = { "Type", "Place", "Date", "Time", "Price" };
         AEF.SetDesign(Atts, 0);
         AEF.Show();
     }
     else
     {
         MessageBox.Show("Enter ID");
     }
 }