Esempio n. 1
0
 void HandlePlayerListCharacterSelectionChanged(object sender, CharacterSelectionChangedEventArgs e)
 {
     if (e.NewCharacter != null && e.NewCharacter != _SelectedCharacter)
     {
         SelectCharacter(e.NewCharacter);
     }
 }
            public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
            {
                if (state != null)
                {
                    UITableViewCell cell = tableView.CellAt(indexPath);
                    if (cell != null)
                    {
                        cell.SetNeedsDisplay();
                    }

                    CharacterSelectionChangedEventArgs e = new CharacterSelectionChangedEventArgs();
                    e.OldCharacter           = state._SelectedCharacter;
                    state._SelectedCharacter = state.currentCharacters[indexPath.Row];
                    e.NewCharacter           = state._SelectedCharacter;
                    if (state.CharacterSelectionChanged != null)
                    {
                        state.CharacterSelectionChanged(state, e);
                    }
                }
            }