示例#1
0
        private void button4_Click(object sender, EventArgs e)
        {
            ChonMon2.GiaTien = label11.Text;
            ChonMon2.TenMon  = textBox1.Text;
            ChonMon.Size     = "";
            ChonMon2 chonMon2 = new ChonMon2();

            chonMon2.ShowDialog();
        }
 private void button4_Click(object sender, EventArgs e)
 {
     if (textBox3.Text.Trim() == "")
     {
         ChonMon2.GiaTien = label11.Text;
         ChonMon2.TenMon  = textBox1.Text;
         ChonMon.Size     = "";
         ChonMon2 chonMon2 = new ChonMon2();
         chonMon2.ShowDialog();
     }
     else
     {
         ChonMon.GiaTien = label11.Text;
         ChonMon.TenMon  = textBox1.Text;
         ChonMon.Size    = "M";
         ChonMon chonMon = new ChonMon();
         chonMon.ShowDialog();
     }
 }