private void button1_Click(object sender, EventArgs e) { using (var dlg = new AddPackageFile()) { var show = dlg.ShowDialog(); if (show == DialogResult.OK) lstfiles.Items.Add(new ListViewItem(new[] {dlg.Input, dlg.Output})); } }
private void button1_Click(object sender, EventArgs e) { using (var dlg = new AddPackageFile()) { var show = dlg.ShowDialog(); if (show == DialogResult.OK) { lstfiles.Items.Add(new ListViewItem(new[] { dlg.Input, dlg.Output })); } } }