public void OpenClub(Club c) { if (c as CityClub != null) { Windows_Club wc = new Windows_Club(c as CityClub); wc.Show(); } }
private void clubNameButtonClick(Club c) { if (c != null && c as CityClub != null) { Windows_Club wc = new Windows_Club(c as CityClub); wc.Show(); } }