Ejemplo n.º 1
0
        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));
            }
        }
Ejemplo n.º 2
0
        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 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)
                    );
            }
        }