async void setTask(ProjectClient project) { if (project != null) { editrow.taskSource = project.Tasks ?? await project.LoadTasks(api); } else { editrow.taskSource = api.GetCache(typeof(Uniconta.DataModel.ProjectTask)); } editrow.NotifyPropertyChanged("TaskSource"); leFollows.ItemsSource = editrow.TaskSource; }
async void setTask(ProjectClient project, ProjectTaskClientLocal rec) { if (api.CompanyEntity.ProjectTask) { if (project != null) { rec.taskSource = project.Tasks ?? await project.LoadTasks(api); } else { rec.taskSource = null; rec.Task = null; } rec.NotifyPropertyChanged("TaskSource"); } }