Ejemplo n.º 1
0
 /// <summary>
 /// Создание холста
 /// </summary>
 public void CreateCanvas()
 {
     Canvas         = new NSGraphicsCanvas();
     Canvas.Dock    = DockStyle.Fill;
     Canvas.Visible = true;
     Controls.Add(Canvas);
     Canvas.BringToFront();
 }
Ejemplo n.º 2
0
        /// <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();
        }