private void propertiesButton_Click(object sender, EventArgs e) { using (AntProperties properties = new AntProperties(SelectedPlayer)) { properties.ShowDialog(this); } }
private void detailsButton_Click(object sender, EventArgs e) { AntProperties properties = new AntProperties(playerInfo); properties.ShowDialog(this); }