private static void newBreakpointMenuItem_Click(object sender, EventArgs e) { NewBreakpointForm form = new NewBreakpointForm(); form.ShowDialog(); form.Dispose(); }
private void breakpointToolStripMenuItem_Click(object sender, EventArgs e) { using (NewBreakpointForm form = new NewBreakpointForm()) { form.ShowDialog(); } }