Ejemplo n.º 1
0
 public PaintBoard(ButtonMenu buttonMenu)
 {
     InitializeComponent();
     this.buttonMenu            = buttonMenu;
     this.buttonMenu.paintBoard = this;
     currentPoint = new Point();
     paintingCanvas.Background = System.Windows.Media.Brushes.White;
 }
Ejemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();
            ButtonMenu buttonMenu = new ButtonMenu();
            PaintBoard paintBoard = new PaintBoard(buttonMenu);

            btnMenu.Children.Add(buttonMenu);
            paintingCanvas.Children.Add(paintBoard);
        }