private void txtAssemblyInfo_ButtonClick(object sender, DevExpress.XtraEditors.Controls.ButtonPressedEventArgs e) { Type[] filterTypes = new Type[] { typeof(FormBase), typeof(UC_UserControlBase) }; FRM_AssemblyExplorer assemblyExplorer = new FRM_AssemblyExplorer(filterTypes); if (assemblyExplorer.ShowDialog() == DialogResult.OK) { txtAssemblyInfo.Text = assemblyExplorer.SelectedForm.AssemblyInfo; //((Button) editingObject).AssemblyInfo = assemblyExplorer.SelectedForm.AssemblyInfo; } }
private void btnAssemblyinfo_Click(object sender, EventArgs e) { using (FRM_AssemblyExplorer frm = new FRM_AssemblyExplorer(AssemblyBaseType)) { if (frm.ShowDialog() == DialogResult.OK) { if (frm.SelectedPelsoft != null) { txtAssembly.Text = frm.SelectedPelsoft.AssemblyInfo; } } } }