Exemple #1
0
        public PickColorButton(Color i_Color, Point i_Location, BoardButton i_BoardButton, ColorsForm i_ColorsForm)
        {
            m_ColorsForm  = i_ColorsForm;
            m_BoardButton = i_BoardButton;

            ClientSize = new Size(k_Size, k_Size);
            BackColor  = i_Color;
            Location   = i_Location;
            Click     += m_Color_Button_Click;
        }
Exemple #2
0
        public void m_BoardButton_Click(object sender, EventArgs e)
        {
            ColorsForm colorsForm = new ColorsForm(this);

            colorsForm.DisableSelectedColors(m_Board.Gusses[m_Board.Turn].SelectedColors);
            colorsForm.ShowDialog();
            if (m_Board.Gusses[m_Board.Turn].UniqueColors == 4)
            {
                m_Board.SubmitButtons[m_Board.Turn].Enable(true);
            }
            else
            {
                m_Board.SubmitButtons[m_Board.Turn].Enable(false);
            }
        }