public void SetFrom(ReferencedFileSave rfs) { backingData = rfs; foreach(var project in GlueState.Self.GetProjects()) { var projectName = project.Name; var settings = new IndividualProjectSetting(); settings.ProjectName = projectName; settings.IsEnabled = backingData.ProjectsToExcludeFrom.Contains(projectName) == false; settings.PropertyChanged += HandlePropertyChanged; ProjectSettings.Add(settings); } }
public void SetFrom(ReferencedFileSave rfs) { backingData = rfs; foreach (var project in GlueState.Self.GetProjects()) { var projectName = project.Name; var settings = new IndividualProjectSetting(); settings.ProjectName = projectName; settings.IsEnabled = backingData.ProjectsToExcludeFrom.Contains(projectName) == false; settings.PropertyChanged += HandlePropertyChanged; ProjectSettings.Add(settings); } }