public override bool afterAdd() { List <AgcBase> list = new List <AgcBase>(); for (int i = 0; i < mRbList.Length; i++) { String[] kv = mRbList[i].Split(mSeparate); if (kv.Length != 2) { continue; } AgcRadioButton agcCb = new AgcRadioButton(i, kv[1].Trim(), kv[0].Trim()); list.Add(agcCb); agcrbList.Add(agcCb); agcrbDic[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); }
protected override void setValue(object obj) { String[] values = obj.ToString().Split(mValueSeparate); foreach (String v in values) { AgcRadioButton rb = getRadioButton(v); if (rb != null) { rb.set(true); } } }