private void butTrophyPhotos_Click(object sender, EventArgs e) { using (PhotoDialog dlg = new PhotoDialog() { TrophyID = CurrentTrophyID }) { dlg.ShowDialog(this); } }