private void darkDockPanel4_Load(object sender, EventArgs e) { lt = new LayerTool(); lt.form = this; darkDockPanel4.AddContent(lt); r = new RoomsControl(); r.form1 = this; darkDockPanel4.AddContent(r); rooms = r.dtv; }
private void darkDockPanel4_Load(object sender, EventArgs e) { LayerTool w = new LayerTool(drawTest1); w.form = this; darkDockPanel4.AddContent(w); RoomsControl r = new RoomsControl(); r.drawTest1 = drawTest1; r.form1 = this; darkDockPanel4.AddContent(r); rooms = r.dtv; drawTest1.roomsControl = r; }