示例#1
0
        /// <summary>
        /// 改变选中列表
        /// </summary>
        /// <param name="tempvalue"></param>
        /// <param name="tempbool"></param>
        private void chartcheck_value(string tempvalue, bool tempbool)
        {
            bool has = false;

            for (int i = 0; i < chartchecklist.Count; i++)
            {
                if (chartchecklist[i].keyname == tempvalue)
                {
                    chartchecklist[i].keyvalue = tempbool;
                    has = true;
                    break;
                }
            }
            if (!has)
            {
                chart_check tempcc = new chart_check();
                tempcc.keyname  = tempvalue;
                tempcc.keyvalue = tempbool;
                chartchecklist.Add(tempcc);
            }
        }
示例#2
0
 /// <summary>
 /// �ı�ѡ���б�
 /// </summary>
 /// <param name="tempvalue"></param>
 /// <param name="tempbool"></param>
 private void chartcheck_value(string tempvalue, bool tempbool)
 {
     bool has = false;
     for (int i = 0; i < chartchecklist.Count; i++)
     {
         if (chartchecklist[i].keyname == tempvalue)
         {
             chartchecklist[i].keyvalue = tempbool;
             has = true;
             break;
         }
     }
     if (!has)
     {
         chart_check tempcc = new chart_check();
         tempcc.keyname = tempvalue;
         tempcc.keyvalue = tempbool;
         chartchecklist.Add(tempcc);
     }
 }