Пример #1
0
        private void SearchCrystalControl_Load(object sender, EventArgs e)
        {
            formPeriodicTable = new FormPeriodicTable();

            var parent = this.Parent;

            while (!(parent is Form) && parent != null)
            {
                parent = parent.Parent;
            }
            if (parent == null)
            {
                return;
            }
            var form = parent as Form;

            formPeriodicTable.Owner = form;
        }
Пример #2
0
 public SearchCrystalControl()
 {
     InitializeComponent();
     formPeriodicTable = new FormPeriodicTable();
 }