private void pb_addHead_Click(object sender, EventArgs e) { //lv_editRequestHeads.Items.Add("name: value"); AddResponseHead f = new AddResponseHead(lv_editResponseHeads, this, true); f.ShowDialog(); }
private void lv_editResponseHeads_DoubleClick(object sender, EventArgs e) { if (lv_editResponseHeads.SelectedItems.Count > 0) { AddResponseHead f = new AddResponseHead(lv_editResponseHeads, this, false); f.ShowDialog(); } }