Exemple #1
0
        private void ReInitializeForm()
        {
            ActivateAddMode();
            tempLocation             = new Location("", "");
            locationToEdit           = null;
            tempAccessPoints         = new List <AccessPoint>();
            tempLocsToCreate         = new List <zoneLocationPair>();
            tempAccessPointsToDelete = new List <AccessPoint>();
            tempObject       = null;
            objectEditor     = new ObjectEditor(world, tempLocation, currentZone, tVObjects);
            objectNameChange = false;


            refreshNounsAutoComplete();

            ClearAllFields();
            AddEditAccessPointToLbAccessPoints();
            if (world.zones.Count < 1)
            {
                btnNewZone.Select();
            }
            else
            {
                cbLocation.Select();
                AddLocationsInCbLocation();
            }
        }
Exemple #2
0
 private void UpdateTvObjects()
 {
     objectEditor           = new ObjectEditor(world, locationToEdit, currentZone, tVObjects);
     tVObjects.SelectedNode = tVObjects.Nodes[0];
     RefreshTvObjects();
     refreshNounsAutoComplete();
 }