Пример #1
0
        private async void memberList_ButtonClick(object sender, CellClickEventArgs e)
        {
            var item   = e.Item;
            var member = (ArmyMember)item.RowObject;

            if (e.ColumnIndex == 1)
            {
                await packetWriter.KickArmyPlayerAsync(member.Id);
            }
            else if (e.ColumnIndex == 2)
            {
                await packetWriter.MoveArmyPlayerUpAsync(member.Id);
            }
            else if (e.ColumnIndex == 3)
            {
                await packetWriter.MoveArmyPlayerDownAsync(member.Id);
            }
        }