Ejemplo n.º 1
0
        private void SelfFieldClickedHandler(object sender, EventArgs e)
        {
            if (sender is IButtonControl)
            {
                var button       = sender as IButtonControl;
                var fieldSysName = button.CommandArgument;
                var entityID     = int.Parse(button.CommandName);

                Card card;
                Cards.TryGetValue(entityID, out card);

                CardSelfField selfField = card.GetSelfField(fieldSysName);
                if (SelfFieldClicked != null)
                {
                    SelfFieldClicked(this, new SelfFieldClickedEventAgrs(selfField));
                }
            }
        }
Ejemplo n.º 2
0
 public SelfFieldClickedEventAgrs(CardSelfField selfField)
 {
     SelfField = selfField;
 }