private void addToolStripMenuItem_Click(object sender, EventArgs e) { HostConfiguration hostFrm = new HostConfiguration(HostListView); hostFrm.ShowDialog(); //Refresh HostView HostListView.Refresh(); }
private void editToolStripMenuItem_Click(object sender, EventArgs e) { if (HostListView.SelectedItems.Count > 0) { HostConfiguration hostFrm = new HostConfiguration(HostListView.SelectedItems[0]); hostFrm.ShowDialog(); //Refresh HostView HostListView.Refresh(); } }