private void radioButtonRibbon_CheckedChanged(object sender, EventArgs e) { operandsModeForm = false; numericUpDownA.Visible = false; numericUpDownB.Visible = false; labelA.Visible = false; labelB.Visible = false; dgvRibbon = DGV.RibbonClear(dgvRibbon, alphabet); dgvRibbon = DGV.RibbonReadOnly(dgvRibbon, false); }
private void buttonClearRibbon_Click(object sender, EventArgs e) { string oldAlphabet = alphabet; alphabet = ""; for (int i = 1; i < dgvStates.Rows.Count; i++) { alphabet += dgvStates.Rows[i].Cells[0].Value.ToString(); } if (Analyzer.alphabetAnalysis(dgvStates, alphabet)) { dgvRibbon = DGV.RibbonClear(dgvRibbon, alphabet); dgvStates = DGV.toWhite(dgvStates, 0); dgvStates.Rows[0].Cells[0].Style.BackColor = Color.Gray; dgvRibbon = DGV.toWhite(dgvRibbon, 1); } else { alphabet = oldAlphabet; } }