Ejemplo n.º 1
0
 /// <summary>
 /// Alert a sub interface on this specififed by key edit interface that its data contents have changed.
 /// This will check to see that the editInterface this is called on is not null before executing.
 /// </summary>
 /// <param name="parentInterface">The parent edit interface. Can be null.</param>
 /// <param name="key">The key for the sub interface.</param>
 public static void safeAlertSubInterfaceDataContentsChanged(this EditInterface parentInterface, Object key)
 {
     if (parentInterface != null)
     {
         parentInterface.getEditInterfaceFor(key).safeAlertDataContentsChanged();
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Safe version of removeSubInterface. Will check for the calling object to be null first. Will first find the
 /// SubEditInterface specified by key and then remove value from it.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="editInterface"></param>
 /// <param name="value"></param>
 /// <param name="key"></param>
 public static void safeRemoveSubInterfaceForObject <T>(this EditInterface editInterface, Object key, T value)
     where T : class
 {
     if (editInterface != null)
     {
         editInterface.getEditInterfaceFor(key).removeSubInterface <T>(value);
     }
 }