예제 #1
0
        private void onProjectAutocomplete(List <Toggl.TogglAutocompleteView> list)
        {
            if (this.TryBeginInvoke(this.onProjectAutocomplete, list))
            {
                return;
            }

            this.projectAutoComplete.SetController(AutoCompleteControllersFactory.ForProjects(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(AutoCompleteControllersFactory.ForProjects(list));
            }
        }