我需要知道我是如何从组合框中的选定名称获得vip的id 我选择值= id 在这里我的代码以及我如何为新钱添加VIP钱
else
{
rs.Item = comboBox1.Text;
rs.Operation = "ok ";
rs.Uname = label6.Text;
rs.Price = textBox2.Text;
rs.Total_Price = Convert.ToInt32(textBox1.Text) * Convert.ToInt32(textBox2.Text);
rs.Store = textBox3.Text;
rs.Quantity = Convert.ToInt32(textBox1.Text);
vip.money = Convert.ToInt32(vip.money) + ((Convert.ToInt32(textBox2.Text) * Convert.ToInt32(textBox1.Text)) - Convert.ToInt32(textBox4.Text));
rs.Date = DateTime.Now;
i.Mount = i.Mount - Convert.ToInt32(textBox1.Text);
db.Report_Sales.AddObject(rs);
db.SaveChanges();
MessageBox.Show("ok");
checkItem();
this.Close();
}
}