public bool IsIncluded(SolutionFolderItem entry) { TranslationProjectInformation info = GetProjectInformation(entry, false); if (info != null) { return(info.IsIncluded); } return(true); }
void ActiveToggled(object sender, ToggledArgs e) { TreeIter iter; if (store.GetIterFromString(out iter, e.Path)) { bool isTogglod = (bool)store.GetValue(iter, 1); SolutionItem entry = (SolutionItem)store.GetValue(iter, 3); if (entry is Project) { TranslationProjectInformation info = project.GetProjectInformation(entry, true); info.IsIncluded = !isTogglod; store.SetValue(iter, 1, !isTogglod); } } }
public TranslationProjectInformation GetProjectInformation(SolutionFolderItem entry, bool force) { foreach (TranslationProjectInformation info in this.projectInformations) { if (info.ProjectName == entry.Name) { return(info); } } if (force) { TranslationProjectInformation newInfo = new TranslationProjectInformation(entry.Name); this.projectInformations.Add(newInfo); return(newInfo); } return(null); }
bool IsIncluded(SolutionItem entry) { if (entry is SolutionFolder) { foreach (SolutionItem childEntry in ((SolutionFolder)entry).Items) { if (!IsIncluded(childEntry)) { return(false); } } return(true); } TranslationProjectInformation info = project.GetProjectInformation(entry, false); if (info != null) { return(info.IsIncluded); } return(true); }
public TranslationProjectInformation GetProjectInformation (SolutionItem entry, bool force) { foreach (TranslationProjectInformation info in this.projectInformations) { if (info.ProjectName == entry.Name) return info; } if (force) { TranslationProjectInformation newInfo = new TranslationProjectInformation (entry.Name); this.projectInformations.Add (newInfo); return newInfo; } return null; }