protected override Control CreateUIControl() { ObjectAdmin objectAdmin = new ObjectAdmin(); this.UpdateUIControl(objectAdmin); return objectAdmin; }
private void menuItem_ObjectAdmin_Activate(object sender, EventArgs e) { if (this.m_objectAdminForm != null && !this.m_objectAdminForm.IsDisposed) { this.m_objectAdminForm.Show(); return; } this.m_objectAdminForm = new Form(); this.m_objectAdminForm.Text = "Object admin"; ObjectAdmin objectAdmin = new ObjectAdmin(); this.m_objectAdminForm.Controls.Add(objectAdmin); objectAdmin.Dock = DockStyle.Fill; this.m_objectAdminForm.Size = new Size(1024, 768); this.m_objectAdminForm.StartPosition = FormStartPosition.CenterParent; this.m_objectAdminForm.Show(); }