private void Form1_Shown(object sender, EventArgs e) { // this fires when loading is complete // fire loading finished for simplexRender dependent controls r.drawTest1 = sr.drawTest1; lt.FinishIni(sr.drawTest1); darkDockPanel1.AddContent(sr); w = new ToolWindow(); w.Dock = DockStyle.Fill; w.main = sr.drawTest1; w.form1 = this; objects = w.dtv; darkDockPanel2.AddContent(w); sr.drawTest1.roomsControl = r; sr.drawTest1.Rsize(); ww.LoadReady(); }