Beispiel #1
0
        /// <summary>
        /// 
        /// </summary>
        public DrawPanel()
        {
            MouseDown += DrawPanel_MouseDown;
            MouseMove += DrawPanel_MouseMove;
            MouseUp += DrawPanel_MouseUp;
            _grid = new int[_numRows, _numRows];

            _bPanel = new ButtonsPanel();
            AddButtonPanel(_bPanel);
        }
Beispiel #2
0
        /// <summary>
        /// 
        /// </summary>
        public DrawPanel()
        {
            MouseDown += DrawPanel_MouseDown;
            MouseMove += DrawPanel_MouseMove;
            MouseUp += DrawPanel_MouseUp;
            InitializeColors();
            grid = new int[numRows, numRows];

            bPanel=new ButtonsPanel();
            AddButtonPanel(bPanel);
        }
Beispiel #3
0
 private void AddButtonPanel(ButtonsPanel buttonsPanel)
 {
     buttonsPanel.Width = 400;
     buttonsPanel.Height = 100;
     buttonsPanel.Location = new Point(10, 410);
     buttonsPanel.BackColor = Color.Black;
     buttonsPanel.OnStartClicked += bPanelOnStartClicked;
     Controls.Add(buttonsPanel);
 }