private void linkLabelFilter_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { using (SnapshotFilterForm f = new SnapshotFilterForm()) { if (f.ShowDialog() == DialogResult.OK) { // Apply filtering BuildList(f.MapNameBox.Text, f.PrefixBox.Text, f.StartDateTime.Value, f.EndDateTime.Value); } } }