private void ViewSnapshotBtn_Click(object sender, EventArgs e) { using (SnapshotViewForm Form = new SnapshotViewForm()) { Form.ShowDialog(); CountSnapshots(); } }