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

            this.projectAutoComplete.SetController(AutoCompleteControllers.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(AutoCompleteControllers.ForProjects(list));
            }
        }
        private void tryUpdatingProjectAutoComplete()
        {
            if (this.projects == null || this.clients == null || this.workspaces == null)
            {
                return;
            }

            using (Performance.Measure("building edit view project auto complete controller, {0} items", this.projects.Count))
            {
                this.projectAutoComplete.SetController(
                    AutoCompleteControllers.ForProjects(this.projects, this.clients, this.workspaces)
                    );
            }
        }