コード例 #1
0
ファイル: DrawPanel.cs プロジェクト: nabinnepal/aStarSearch
        /// <summary>
        /// 
        /// </summary>
        public DrawPanel()
        {
            MouseDown += DrawPanel_MouseDown;
            MouseMove += DrawPanel_MouseMove;
            MouseUp += DrawPanel_MouseUp;
            _grid = new int[_numRows, _numRows];

            _bPanel = new ButtonsPanel();
            AddButtonPanel(_bPanel);
        }
コード例 #2
0
ファイル: DrawPanel.cs プロジェクト: nabinnepal/aStarSearch
        /// <summary>
        /// 
        /// </summary>
        public DrawPanel()
        {
            MouseDown += DrawPanel_MouseDown;
            MouseMove += DrawPanel_MouseMove;
            MouseUp += DrawPanel_MouseUp;
            InitializeColors();
            grid = new int[numRows, numRows];

            bPanel=new ButtonsPanel();
            AddButtonPanel(bPanel);
        }
コード例 #3
0
ファイル: DrawPanel.cs プロジェクト: nabinnepal/aStarSearch
 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);
 }