private void makeFullscreenPanel(Canvas canvas) { Panel panel = new Panel() { Left = 0, Top = 0, Height = canvas.Height, Width = canvas.Width, Name = "Full-screen", // TODO: resource Canvas = canvas, }; FullScreen fullScreen = new FullScreen() { Canvas = canvas, Panel = panel, }; fullScreen.init(db); panel.FullScreens.Add(fullScreen); canvas.Panels.Add(panel); }