void OnEditGroupCellConfirm(GroupCell cell, string name) { if (cell.data == null) { GroupData gData = Model.groupProxy.CreateGroup(name); cell.SetData(gData); cell.SwitchToShowMode(); SelectGroupCell(cell); } else { } }
void InitGroup() { foreach (KeyValuePair <string, GroupData> kv in Model.groupProxy.groups) { GroupCell gc = CreateGroupCell(); gc.SetData(kv.Value); gc.SwitchToShowMode(); if (this.selectedGroup == null) { SelectGroupCell(gc); } else { gc.SetSelected(false); } } }