public SearchChatsCollection(IProtoService protoService, string query, IList <ISearchChatsFilter> filters, ChatList chatList = null, SearchChatsType type = SearchChatsType.All) { _protoService = protoService; _query = query; _chatList = chatList; _type = type; _internal = filters; _filters = new MvxObservableCollection <ISearchChatsFilter>(); _local = new KeyedList <string, object>(null as string); _remote = new KeyedList <string, object>(Strings.Resources.GlobalSearch); _messages = new KeyedList <string, object>(Strings.Resources.SearchMessages); Add(_local); Add(_remote); Add(_messages); }
public SuppressEventsDisposable(MvxObservableCollection <T> collection) { _collection = collection; ++collection._suppressEvents; }