private void editAssemblyButton_Click(object sender, System.EventArgs e) { AssemblyPathDialog dlg = new AssemblyPathDialog((string)selectedConfig.Assemblies[assemblyListBox.SelectedIndex].FullPath); if (dlg.ShowDialog() == DialogResult.OK) { selectedConfig.Assemblies[assemblyListBox.SelectedIndex].FullPath = dlg.Path; assemblyListBox_Populate(); } }
private void editAssemblyButton_Click(object sender, System.EventArgs e) { using (AssemblyPathDialog dlg = new AssemblyPathDialog( (string)selectedConfig.Assemblies[assemblyListBox.SelectedIndex])) { this.Site.Container.Add(dlg); if (dlg.ShowDialog() == DialogResult.OK) { selectedConfig.Assemblies[assemblyListBox.SelectedIndex] = dlg.Path; assemblyListBox_Populate(); } } }