private void loadNotExistings(TreeNode parent, VSCulture culture) { foreach (VSCulture targetCulture in Main.CurrentSolution.Cultures.Values) { if (targetCulture != culture) { var notexistingNode = new CultureAnalysisResultTreeNode(culture, targetCulture); parent.Nodes.Add(notexistingNode); loadNotExistings(notexistingNode); } } }
private void loadNotExistings(CultureAnalysisResultTreeNode node) { List <ResourceDataBase> notexisting = node.SourceCulture.GetItemsNotExistingInCulture(node.TargetCulture); node.ContextMenuStrip = contextMenuAnalysisLang; node.Text = String.Format(Properties.Resources.NotExistingInLanguage, new object[] { notexisting.Count, node.TargetCulture.Culture.DisplayName }); if (notexisting.Count > 0) { node.ForeColor = Color.Red; node.Parent.ForeColor = Color.Red; } loadDataItems(node, notexisting); }
public void RefreshAnalysis(CultureAnalysisResultTreeNode node) { Invoke((MethodInvoker)(() => loadNotExistings(node))); }
private void loadNotExistings(CultureAnalysisResultTreeNode node) { List<ResourceDataBase> notexisting = node.SourceCulture.GetItemsNotExistingInCulture(node.TargetCulture); node.ContextMenuStrip = contextMenuAnalysisLang; node.Text = String.Format(Properties.Resources.NotExistingInLanguage, new object[] { notexisting.Count, node.TargetCulture.Culture.DisplayName }); if (notexisting.Count > 0) { node.ForeColor = Color.Red; node.Parent.ForeColor = Color.Red; } loadDataItems(node, notexisting); }