void ht_HLB_Set(Dictionary<int, int> dic)
        {
            //匿名函数
            Action<int> fun = (int jhShare_Iid) =>
            {
                try
                {
                    switch (dic[jhShare_Iid])
                    {
                        case 0: s.Color = GradientButtons.ColorEnum.red; break;
                        case 1: s.Color = GradientButtons.ColorEnum.blue; break;
                        case 2: s.Color = GradientButtons.ColorEnum.white; break;
                    }
                }
                catch { };
            };
            //设置计划员按钮颜色
            this.li_btnJHY.ForEach(s => { fun((s.Value as rgjh_jhy_Models).jhShare_Iid); });
            this.li_btnSC.ForEach(s => { fun((s.Value as rgjh_jhy_Models).jhShare_Iid); });
        }

 

相关文章:

  • 2022-02-05
  • 2022-12-23
  • 2021-07-26
  • 2022-01-28
  • 2022-12-23
  • 2021-08-07
猜你喜欢
  • 2021-08-24
  • 2022-12-23
  • 2021-09-30
相关资源
相似解决方案