Exemple #1
0
        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();
            }
        }
Exemple #2
0
        // 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();
            }
        }
Exemple #3
0
        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;
        }
Exemple #4
0
        // 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;
        }