public static MapMultipleObjects CreateAllObjects() { var objByName = new MapMultipleObjects("All Objects", Config.ObjectAssociations.DefaultImage, Config.ObjectAssociations.DefaultImage); objByName.predicate = _ => true; return(objByName); }
public static MapMultipleObjects CreateByName() { string objName = DialogUtilities.GetStringFromDialog(labelText: "Enter the name of the object."); if (objName == null) { return(null); } ObjectBehaviorAssociation assoc = Config.ObjectAssociations.GetObjectAssociation(objName); if (assoc == null) { return(null); } var objByName = new MapMultipleObjects("All " + assoc.Name, assoc.Image, assoc.MapImage); objByName.predicate = _ => _.BehaviorAssociation.Name == objName; return(objByName); }