示例#1
0
 public void SetTitle(string title)
 {
     if (Project == null)
     {
         Project = new Project();
     }
     Project.Title = title;
     ProjectTitleChanged?.Invoke(title);
 }
示例#2
0
        private async void InitializeDataFromStorage()
        {
            var data = (await _storageService.GetAll()).ToList();

            Project = data.Any() ? data.First() : null;
            ProjectChanged?.Invoke(Project);
            if (Project != null)
            {
                ProjectTitleChanged?.Invoke(Project.Title);
            }
        }