private void btnOpenEmptyWatchWindow_Click(object sender, EventArgs e)
        {
            LocalsWindow dlg = new LocalsWindow("", null);

            dlg.Show();
            dlg.FormClosed += (s, ev) => dlg.Dispose();
        }
 private void btnOpenLocals_Click(object sender, EventArgs e)
 {
     if (lstOpenForms.SelectedIndex >= 0)
     {
         object       frm = ((FormItem)lstOpenForms.Items[lstOpenForms.SelectedIndex]).Form;
         LocalsWindow dlg = new LocalsWindow("", frm);
         dlg.FormClosed += (s, ev) => dlg.Dispose();
         dlg.Show();
     }
 }