Example #1
0
        private bool tryCreatingNewClient(string text)
        {
            var clientGUID = Toggl.CreateClient(this.selectedWorkspaceId, text);

            Console.WriteLine("client guid: " + (clientGUID ?? "null"));

            if (string.IsNullOrEmpty(clientGUID))
            {
                return(false);
            }

            this.selectedClientName = text;
            this.selectedClientGUID = clientGUID;
            this.selectedClientId   = 0;

            this.disableNewClientMode();

            this.projectTextBox.Focus();

            return(true);
        }