Example #1
0
        // Open Object Detail and Populate for selected Mob.
        private void btnFullObjDetail_Click(object sender, EventArgs e)
        {
            int iCurrentObj = -1;
            int iCurrentMob = -1;

            // Check which row is selected.
            iCurrentObj = Convert.ToInt32(lbLoads.SelectedValue.ToString());

            if (iCurrentObj > -1)
            {
                // Display the Form to allow the User to Edit an Object.
                using (forms.ObjectManagement objDetail = new forms.ObjectManagement(iCurrentArea, iCurrentObj))
                {
                    // Display the form.
                    objDetail.ShowDialog();

                    // Get the saved Mob ID from the child form and refresh.
                    int iObjectID = objDetail.iObjectID;

                    if (iObjectID > 0)
                    {
                        // Refresh Mob Detail.
                    }

                    if (lbSpawns.SelectedValue.ToString() != "")
                    {
                        // Check which row is selected.
                        iCurrentMob = Convert.ToInt32(lbSpawns.SelectedValue.ToString());

                        PopulateObjectsLoadingOnMob(iCurrentMob);
                        PopulateObjectsNotLoadingOnMob(iCurrentMob);
                    }
                }
            }
        }
Example #2
0
 // Open "New Object" Windows.
 private void newObjectToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (iCurrentArea > 0)
     {
         // Display the Form to allow the User to select an Area.
         using (forms.ObjectManagement objDetail = new forms.ObjectManagement(iCurrentArea))
         {
             // Display the form.
             objDetail.ShowDialog();
         }
     }
 }
Example #3
0
 // Open Blank Object Detail Form.
 private void btnAddObject_Click(object sender, EventArgs e)
 {
     // Display the Form to allow the User to select an Area.
     using (forms.ObjectManagement objDetail = new forms.ObjectManagement(iCurrentArea))
     {
         // Display the form.
         objDetail.ShowDialog();
     }
 }