示例#1
0
        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);
                }
            }
        }
示例#2
0
        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);
        }
示例#3
0
 public void RefreshAnalysis(CultureAnalysisResultTreeNode node)
 {
     Invoke((MethodInvoker)(() => loadNotExistings(node)));
 }
示例#4
0
        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);
        }
示例#5
0
        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);
                }
            }
        }
示例#6
0
 public void RefreshAnalysis(CultureAnalysisResultTreeNode node)
 {
     Invoke((MethodInvoker)(() => loadNotExistings(node)));
 }