コード例 #1
0
        public override bool afterAdd()
        {
            List <AgcBase> list = new List <AgcBase>();

            for (int i = 0; i < mCheckList.Length; i++)
            {
                String[] kv = mCheckList[i].Split(mSeparate);
                if (kv.Length != 2)
                {
                    continue;
                }

                AgcCheckbox agcCb = new AgcCheckbox(i, kv[1].Trim(), kv[0].Trim());
                list.Add(agcCb);
                agcCheckBoxList.Add(agcCb);
                checkBoxDic[agcCb.Tag.ToString()] = agcCb;
            }
            list.AddRange(mAttachList);
            AgcSetting setting = new AgcSetting(true);

            setting.MarginButtom = 0;
            setting.SpacingY     = 0;
            mAgcCenter           = new AgcCenter <AgcCheckbox>(this.MPanel, setting, list);
            return(true);
        }
コード例 #2
0
 protected override void setValue(object obj)
 {
     String[] values = obj.ToString().Split(mValueSeparate);
     foreach (String v in values)
     {
         AgcCheckbox acb = this.getCheckBoxByTag(v);
         if (acb != null)
         {
             acb.set(true);
         }
     }
 }