Exemplo n.º 1
0
    private void AttrCheckStatusChanged(UICompoundSelectAttrGrid grid)
    {
        uint index = grid.Index;

        if (emgr.IsEquipCompoundResultOpen(index))
        {
            if (emgr.CompoundSelectIndex != index)
            {
                if (emgr.CompoundSelectIndex != 0)
                {
                    UICompoundSelectAttrGrid tempGrid = GetGridByIndex(emgr.CompoundSelectIndex);
                    if (null != tempGrid)
                    {
                        tempGrid.SetSelect(false);
                    }
                }
                emgr.SetSelectCompoundResult(index);
            }
            grid.SetSelect(true);
        }
        else
        {
            emgr.OpenEquipCompoundResult(index);
        }
    }