private void btnAdd_Click(object sender, EventArgs e) { ParameterDialog dialog = new ParameterDialog(); if (dialog.ShowDialog() == DialogResult.OK) { this.listView1.Items.Add(this.method_0(dialog.method_1())); } }
private void btnEdit_Click(object sender, EventArgs e) { if (this.listView1.SelectedItems.Count != 0) { ListViewItem item = this.listView1.SelectedItems[0]; ParameterDialog dialog = new ParameterDialog(); dialog.method_2((XmlCmdParameter) item.Tag); if (dialog.ShowDialog() == DialogResult.OK) { this.method_1(item, dialog.method_1()); } } }