private void SetNumVar_Click(object sender, EventArgs e) { varNames.Clear(); for (int i = 0; i < numVarUpDown.Value; i++) { varNames.Add(((char)(i + 0x61)).ToString()); } List <Token> tokens = new List <Token>(); foreach (string s in varNames) { tokens.Add(new Token(TokenType.Text, s)); } Token result = Booleans.FillBool("fillbool", tokens); if (result.TokenType == TokenType.Error) { MessageBox.Show("Something's is wrong with your luck! Operation failed. Variables may be corrupt!"); return; } this.createTableButton.Enabled = true; this.addColButton.Enabled = true; }