当前位置: 首页>>代码示例>>C#>>正文


C# CheckState.Equals方法代码示例

本文整理汇总了C#中CheckState.Equals方法的典型用法代码示例。如果您正苦于以下问题:C# CheckState.Equals方法的具体用法?C# CheckState.Equals怎么用?C# CheckState.Equals使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CheckState的用法示例。


在下文中一共展示了CheckState.Equals方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SetCheckedParentNodes

 private static void SetCheckedParentNodes(TreeListNode node, CheckState check)
 {
     if (node.ParentNode != null)
     {
         bool b = false;
         for (int i = 0; i < node.ParentNode.Nodes.Count; i++)
         {
             CheckState state = node.ParentNode.Nodes[i].CheckState;
             if (!check.Equals(state))
             {
                 b = true;
                 break;
             }
         }
         node.ParentNode.CheckState = b ? CheckState.Indeterminate : check;
         SetCheckedParentNodes(node.ParentNode, check);
     }
 }
开发者ID:pvx,项目名称:ShopOrder,代码行数:18,代码来源:OrderManagerForm.cs

示例2: SetCheckedParentNodes

 private void SetCheckedParentNodes(DevExpress.XtraTreeList.Nodes.TreeListNode node, CheckState check)
 {
     if (node.ParentNode != null)
     {
         bool b = false;
         CheckState state;
         for (int i = 0; i < node.ParentNode.Nodes.Count; i++)
         {
             if (node.ParentNode.Nodes[i].Tag == null) state = CheckState.Unchecked;
             else state = (CheckState)node.ParentNode.Nodes[i].Tag;
             if (!check.Equals(state))
             {
                 b = !b;
                 break;
             }
         }
         node.ParentNode.Tag = b ? CheckState.Indeterminate : check;
         SetCheckedParentNodes(node.ParentNode, check);
     }
 }
开发者ID:EdgarEDT,项目名称:myitoppsp,代码行数:20,代码来源:frmLayerGradeSave.cs

示例3: SetCheckedParentNodes

        private void SetCheckedParentNodes(TreeListNode node, CheckState check) {
            if (node.ParentNode != null) {
                bool b = false;
                CheckState state;

                for (int i = 0; i < node.ParentNode.Nodes.Count; i++) {
                    state = (CheckState)node.ParentNode.Nodes[i].CheckState;
                    if (!check.Equals(state)) {
                        b = !b;
                        break;
                    }
                }
                
                node.ParentNode.CheckState = b ? CheckState.Checked : check;
                SetCheckedParentNodes(node.ParentNode, check);
            }
        }
开发者ID:s7loves,项目名称:mypowerscgl,代码行数:17,代码来源:UCmOrgUserTree.cs

示例4: SetCheckedParentNodes

 private void SetCheckedParentNodes(IDictionary<string, List<Layer>> mapLayers, TreeListNode node, CheckState checkState)
 {
     if(node.ParentNode!=null)
     {
         var b = false;
         CheckState state;
         foreach (TreeListNode parentNode in node.ParentNode.Nodes)
         {
             if(parentNode.Tag==null)
             {
                 state=CheckState.Unchecked;
             }
             else
             {
                 state = (CheckState) parentNode.Tag;
             }
             if(!checkState.Equals(state))
             {
                 b = !b;
                 break;
             }
         }
         node.ParentNode.Tag = b ? CheckState.Indeterminate : checkState;
         SetCheckedParentNodes(mapLayers, node.ParentNode, checkState);
     }
 }
开发者ID:zfc317,项目名称:mscd,代码行数:26,代码来源:MainForm.cs

示例5: SetCheckedParentNodes

        private void SetCheckedParentNodes(TreeListNode node, CheckState checkState)
        {
            if (node.ParentNode != null)
            {
                bool b = false;
                CheckState state;
                for (int i = 0; i < node.ParentNode.Nodes.Count; i++)
                {
                    state = (CheckState)node.ParentNode.Nodes[i].CheckState;
                    if (!checkState.Equals(state))
                    {
                        b = !b;
                        break;
                    }
                }
                node.ParentNode.CheckState = b ? CheckState.Indeterminate : checkState;
                //SetRulesHistoryState(node.ParentNode["RuleName"].ToString(), node.ParentNode.Checked);

                SetCheckedParentNodes(node.ParentNode, checkState);

            }
        }
开发者ID:hy1314200,项目名称:HyDM,代码行数:22,代码来源:UCRulesTree.cs


注:本文中的CheckState.Equals方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。