public List <ObjectDataModel> GetLoadedObjectsWithRegex(string pattern) { List <uint> addresses = ObjectOrderingUtilities.GetObjectAddressesInProcessingOrder(); List <ObjectDataModel> objects = addresses.ConvertAll(address => new ObjectDataModel(address)); return(objects.Where(o => o != null && o.IsActive && StringUtilities.IsRegexMatch(pattern, o.BehaviorAssociation?.Name ?? "")).ToList()); }
public List <ObjectDataModel> GetLoadedObjectsWithPredicate(Func <ObjectDataModel, bool> func) { List <uint> addresses = ObjectOrderingUtilities.GetObjectAddressesInProcessingOrder(); List <ObjectDataModel> objects = addresses.ConvertAll(address => new ObjectDataModel(address)); return(objects.Where(o => o != null && o.IsActive && func(o)).ToList()); }
private void buttonMoveTabRight_Click(object sender, EventArgs e) { if (KeyboardUtilities.IsCtrlHeld() || KeyboardUtilities.IsNumberHeld()) { ObjectOrderingUtilities.Move(true); } else { MoveTab(true); } }
public List <ObjectDataModel> GetLoadedObjectsWithName(string name) { if (name == null) { return(new List <ObjectDataModel>()); } List <uint> addresses = ObjectOrderingUtilities.GetObjectAddressesInProcessingOrder(); List <ObjectDataModel> objects = addresses.ConvertAll(address => new ObjectDataModel(address)); return(objects.Where(o => o != null && o.IsActive && o.BehaviorAssociation?.Name?.ToLower() == name.ToLower()).ToList()); }