我有这个功能
public void Search(object sender, EventArgs e)
{
//I get the value form a query..
int MachineNo=Convert.ToInt16(cmd2.ExecuteScalar());
}
我想从那个函数中获取 MachineNo 到这个
public void Edit(object sender, EventArgs e)
{
bool edit=modify(MachineNo,UserName)
}