Example #1
0
        private async Task createTag()
        {
            var createdTag = await dataSource.Tags
                             .Create(CurrentQuery.Trim(), TextFieldInfo.WorkspaceId.Value);

            var tagSuggestion = new TagSuggestion(createdTag);
            await SelectSuggestionCommand.ExecuteAsync(tagSuggestion);
        }
Example #2
0
        private async Task createProject()
        {
            var projectId = await navigationService.Navigate <EditProjectViewModel, string, long?>(CurrentQuery.Trim());

            if (projectId == null)
            {
                return;
            }

            var project = await dataSource.Projects.GetById(projectId.Value);

            var projectSuggestion = new ProjectSuggestion(project);

            await SelectSuggestionCommand.ExecuteAsync(projectSuggestion);
        }