/// <summary> /// Создание холста /// </summary> public void CreateCanvas() { Canvas = new NSGraphicsCanvas(); Canvas.Dock = DockStyle.Fill; Canvas.Visible = true; Controls.Add(Canvas); Canvas.BringToFront(); }
/// <summary> /// Конструктор /// </summary> public SkyboxForm() { InitializeComponent(); canvas = new NSGraphicsCanvas(); canvas.Dock = DockStyle.Fill; canvas.Visible = true; canvas.MouseDown += canvas_MouseDown; canvas.MouseUp += canvas_MouseUp; canvas.MouseMove += canvas_MouseMove; Controls.Add(canvas); canvas.BringToFront(); }