private void Process_Click(object sender, EventArgs e) { try { using (ReferenceUpdaterForm frm = new ReferenceUpdaterForm()) { ArrayList assemblies = new ArrayList(ReferencingAssemblies.Items); assemblies.Add(AssemblyDefinition); frm.ShowDialog(assemblies.ToArray(typeof(AssemblyDefinition)) as AssemblyDefinition[]); } AssemblyDefinition = AssemblyDefinition; // Refresh hack ReferencingAssemblies.DisplayMember = this.GetType().Name; ReferencingAssemblies.DisplayMember = string.Empty; } catch (Exception ex) { MessageBox.Show(String.Format("Reflexil is unable to save this assembly: {0}", ex.Message)); } }