/// <summary> /// /// </summary> public DrawPanel() { MouseDown += DrawPanel_MouseDown; MouseMove += DrawPanel_MouseMove; MouseUp += DrawPanel_MouseUp; _grid = new int[_numRows, _numRows]; _bPanel = new ButtonsPanel(); AddButtonPanel(_bPanel); }
/// <summary> /// /// </summary> public DrawPanel() { MouseDown += DrawPanel_MouseDown; MouseMove += DrawPanel_MouseMove; MouseUp += DrawPanel_MouseUp; InitializeColors(); grid = new int[numRows, numRows]; bPanel=new ButtonsPanel(); AddButtonPanel(bPanel); }
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); }