Exemple #1
0
 private void removePhaseProperty(BehaviorUpdatePhase phase)
 {
     if (phasesEditInterface != null)
     {
         phasesEditInterface.removeEditableProperty(phase);
     }
 }
Exemple #2
0
        /// <summary>
        /// Remove a binding.
        /// </summary>
        /// <param name="toBind">The SimElementManagerDefinition to remove from this SimSubScene</param>
        public void removeBinding(SimElementManagerDefinition toBind)
        {
            SimSubSceneBinding found = null;

            foreach (SimSubSceneBinding binding in bindings)
            {
                if (binding.SimElementManager == toBind)
                {
                    found = binding;
                    break;
                }
            }
            if (found != null)
            {
                bindings.Remove(found);
                if (editInterface != null)
                {
                    editInterface.removeEditableProperty(found);
                }
            }
        }