Beispiel #1
0
        //************************************************************************************************
        private void txt00_Enter(object sender, EventArgs e)
        {
            TextBox txt = (TextBox)sender;

            txt.Select(0, 0);
            row = Int32.Parse(txt.Name.Substring(3, 1));
            col = Int32.Parse(txt.Name.Substring(4, 1));

            if (valorInicio[row, col] != null && valorInicio[row, col] != string.Empty)
            {
                txt.ForeColor = Color.Black;
            }
            else
            {
                txt.ForeColor = Color.Blue;
            }

            if (pincelMarcador)
            {
                txtSudoku[row, col].BackColor = colorFondoAct;
            }
            else
            {
                colorCeldaAnt = txt.BackColor;
                txt.BackColor = Valor.GetColorCeldaAct();
            }
        }
Beispiel #2
0
        //*************************************************************************************

        private void txt00_Enter(object sender, EventArgs e)
        {
            TextBox txt = (TextBox)sender;

            txt.Select(0, 0);
            row = Int32.Parse(txt.Name.Substring(3, 1));
            col = Int32.Parse(txt.Name.Substring(4, 1));

            if (pincelMarcador)
            {
                txtSudoku[row, col].BackColor = colorFondoAct;
            }
            else
            {
                colorCeldaAnt = txt.BackColor;
                txt.BackColor = Valor.GetColorCeldaAct();
            }

            lado = EngineData.btnIzquierda;
        }