コード例 #1
0
 void OnEditGroupCellConfirm(GroupCell cell, string name)
 {
     if (cell.data == null)
     {
         GroupData gData = Model.groupProxy.CreateGroup(name);
         cell.SetData(gData);
         cell.SwitchToShowMode();
         SelectGroupCell(cell);
     }
     else
     {
     }
 }
コード例 #2
0
    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);
            }
        }
    }