public UnitSystemsForm() { // // Required for Windows Form Designer support // InitializeComponent(); UnitSystemsControl unitSystemsCtrl = new UnitSystemsControl(); this.panel.Controls.Add(unitSystemsCtrl); unitSystemsCtrl.Location = new Point(0, 0); }
public UnitSystemsForm(MainForm mainForm) { // // Required for Windows Form Designer support // InitializeComponent(); this.mainForm = mainForm; UnitSystemsControl unitSystemsCtrl = new UnitSystemsControl(); this.panel.Controls.Add(unitSystemsCtrl); unitSystemsCtrl.Location = new Point(0, 0); this.ResizeEnd += new EventHandler(UnitSystemsForm_ResizeEnd); }