private void button2_Click(object sender, EventArgs e) { xiadan.BuyStock(textBox1.Text, float.Parse(textBox2.Text), int.Parse(textBox3.Text)); }