Esempio n. 1
0
        private void OnActionSelected(GroupActionItem item)
        {
            dgAction.Rows.Clear();
            if (item != null)
            {
                item.ShowParameters(dgAction);
                foreach (var p in players)
                {
                    p.IsSelected = false;
                }

                var pos = item.Action.Positions;
                if (pos == null)
                {
                    pos = Combination.Range(0, item.ElementNode.Element.StartFormation.Size - 1);
                }
                foreach (var p in pos)
                {
                    players[item.GetGlobalPositionIndex(p)].IsSelected = true;
                }
            }
            dgAction.Refresh();
            Draw();
        }