Ejemplo n.º 1
0
 public void RegisterDSPropertyChangedHandler(String variable, String property, DSPropertyChangedHandler handler)
 {
     /*
      * Validity.Assert(!String.IsNullOrEmpty(variable));
      * Validity.Assert(!String.IsNullOrEmpty(property));
      *
      * Dictionary<String, DSPropertyChangedHandler> propertyChangedHandler = null;
      * if (!mSubscribers.TryGetValue(variable, out propertyChangedHandler))
      * {
      *  propertyChangedHandler = new Dictionary<string, DSPropertyChangedHandler>();
      *  mSubscribers[variable] = propertyChangedHandler;
      * }
      *
      * DSPropertyChangedHandler existingHandler = null;
      * if (!propertyChangedHandler.TryGetValue(property, out existingHandler))
      * {
      *  existingHandler = handler;
      *  propertyChangedHandler[property] = existingHandler;
      * }
      * else
      * {
      *  existingHandler += handler;
      * }
      */
 }
Ejemplo n.º 2
0
        public void RegisterDSPropertyChangedHandler(String variable, String property, DSPropertyChangedHandler handler)
        {
            /*
            Validity.Assert(!String.IsNullOrEmpty(variable));
            Validity.Assert(!String.IsNullOrEmpty(property));

            Dictionary<String, DSPropertyChangedHandler> propertyChangedHandler = null;
            if (!mSubscribers.TryGetValue(variable, out propertyChangedHandler))
            {
                propertyChangedHandler = new Dictionary<string, DSPropertyChangedHandler>();
                mSubscribers[variable] = propertyChangedHandler; 
            }

            DSPropertyChangedHandler existingHandler = null;
            if (!propertyChangedHandler.TryGetValue(property, out existingHandler))
            {
                existingHandler = handler;
                propertyChangedHandler[property] = existingHandler;
            }
            else
            {
                existingHandler += handler;
            }
            */
        }