private void comboBoxType_SelectedIndexChanged(object sender, EventArgs e)
{
int returnID = 0;
switch (comboBoxType.Text)
{
case ("超级管理员"):
returnID = 5;
break;
case ("一般管理员"):
returnID = 4;
break;
case ("会员"):
returnID = 3;
break;
case ("游客"):
returnID = 2;
break;
//以此类推
}
MessageBox.Show("返回ID=" + returnID, "系统提示");
}