public void SetTitle(string title) { if (Project == null) { Project = new Project(); } Project.Title = title; ProjectTitleChanged?.Invoke(title); }
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); } }