private void DrawFace(SelectData data) { if (data == null) { return; } var selection = Grid.GetSelection(data.CurrentCell, false); if (selection == null) { return; } if (selection.SelectionType == PlayerSelectType.Profile) { data.DrawProfile(selection.Profile); } }
void DrawFace(SelectData data) { if (data == null) { throw new ArgumentNullException("data"); } PlayerSelect selection = GetSelection(data.CurrentCell, false); if (selection == null) { return; } if (selection.SelectionType == PlayerSelectType.Profile) { data.DrawProfile(selection.Profile); } if (selection.SelectionType == PlayerSelectType.Random) { } }