public void SetKnownTags(IEnumerable <string> tags) { if (!this.autoComplete.popUpOpen()) { this.autoComplete.SetController(AutoCompleteControllers.ForTags(tags, this.Contains)); } }
private void reloadWorkspaceClients(ulong workspace_id) { var list = this.clients.Where(c => c.WID == workspace_id).ToList(); using (Performance.Measure("building Filtered edit view client auto complete controller, {0} items", this.clients.Count)) { this.clientAutoComplete.SetController(AutoCompleteControllers.ForClients(list)); } }
private void onProjectAutocomplete(List <Toggl.TogglAutocompleteView> list) { if (this.TryBeginInvoke(this.onProjectAutocomplete, list)) { return; } this.projectAutoComplete.SetController(AutoCompleteControllers.ForProjects(list)); }
private void onMiniTimerAutocomplete(List <Toggl.TogglAutocompleteView> list) { if (this.TryBeginInvoke(this.onMiniTimerAutocomplete, list)) { return; } using (Performance.Measure("timer building auto complete controller, {0} items", list.Count)) { this.descriptionAutoComplete.SetController(AutoCompleteControllers.ForTimer(list)); } }
private void onWorkspaceSelect(List <Toggl.TogglGenericView> list) { if (this.TryBeginInvoke(this.onWorkspaceSelect, list)) { return; } this.workspaces = list; using (Performance.Measure("building edit view workspace auto complete controller, {0} items", list.Count)) { this.workspaceAutoComplete.SetController(AutoCompleteControllers.ForWorkspaces(list)); } }
private void onClientSelect(List <Toggl.TogglGenericView> list) { if (this.TryBeginInvoke(this.onClientSelect, list)) { return; } this.clients = list; using (Performance.Measure("building edit view client auto complete controller, {0} items", this.clients.Count)) { this.clientAutoComplete.SetController(AutoCompleteControllers.ForClients(list)); } }
private void onProjectAutocomplete(List <Toggl.TogglAutocompleteView> list) { if (this.TryBeginInvoke(this.onProjectAutocomplete, list)) { return; } this.projects = list; using (Performance.Measure("building edit view project auto complete controller, {0} items", this.projects.Count)) { this.projectAutoComplete.SetController(AutoCompleteControllers.ForProjects(list)); } }
private void tryUpdatingClientAutoComplete() { if (this.clients == null || this.workspaces == null) { return; } using (Performance.Measure("building edit view client auto complete controller, {0} items", this.clients.Count)) { this.clientAutoComplete.SetController( AutoCompleteControllers.ForClients(this.clients, this.workspaces) ); } }
private void fill(List <Toggl.TogglAutotrackerRuleView> rules, string[] terms) { this.termAutoComplete.SetController(AutoCompleteControllers.ForStrings(terms)); this.fillRules(rules); }