private void cmdExpand_Click(object sender, EventArgs e) { Type t = this.ParameterInfo.ParameterType; object obj = Activator.CreateInstance(t); FormShowObject frm = new FormShowObject(obj); DialogResult res = frm.ShowDialog(); if (res != DialogResult.Cancel) { this.Value = frm.SelectedObject; } frm.Dispose(); }
private void DisplaySingleObject(object obj) { FormShowObject frm = new FormShowObject(obj); frm.ShowDialog(); }