private void SaveMob() { // Create a new Mob object. classes.mob oMob = new classes.mob(); // Populate Mob Details from Form. int iVUM = 0; if (txtVNUM.Text != "") iVUM = Convert.ToInt32(txtVNUM.Text); oMob.mobAreaID = iCurrentAreaID; oMob.mobVNUM = iVUM; oMob.ShortDesc = txtShortDescription.Text; // Insert or Update the room. if (iMobID > 0) { oMob.mobID = iMobID; oMob.UpdateMob(); } else { oMob.AddMob(); } }
// General Methods #region "methods" private void SaveMob() { // Create a new Mob object. classes.mob oMob = new classes.mob(); // Populate Mob Details from Form. int iVUM = 0; if (txtVNUM.Text != "") { iVUM = Convert.ToInt32(txtVNUM.Text); } oMob.mobAreaID = iCurrentAreaID; oMob.mobVNUM = iVUM; oMob.ShortDesc = txtShortDescription.Text; // Insert or Update the room. if (iMobID > 0) { oMob.mobID = iMobID; oMob.UpdateMob(); } else { oMob.AddMob(); } }
public void PopulateMobDetails(int iMobID) { classes.mob oMob = new classes.mob(); oMob = classes.mob.GetMob(iMobID); txtVNUM.Text = oMob.mobVNUM.ToString(); txtShortDescription.Text = oMob.ShortDesc; }
// Populate Mob Details to the Form #region "population" public void PopulateMobDetails(int iMobID) { classes.mob oMob = new classes.mob(); oMob = classes.mob.GetMob(iMobID); txtVNUM.Text = oMob.mobVNUM.ToString(); txtShortDescription.Text = oMob.ShortDesc; }