Beispiel #1
0
        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();
        }