private void Next_Button_Click(object sender, EventArgs e) { string line = null; StringReader LineString = new StringReader(G_Textbox.Text); int SpaceCount = 1; int BracketCount = 0; while (true) { line = LineString.ReadLine(); if (line == null) { if (BracketCount == SpaceCount) { Next_Timer.Start(); } else { MessageBox.Show("There appears to be a problem with your codes. Assuming you inputted actual codes, this is probably due to improper/missing titles or lack of space between codes.", "Results", MessageBoxButtons.OK); } break; } if (line == "") { SpaceCount++; } if (line.StartsWith("[") && line.Contains("]")) { BracketCount++; } } }
private void Next_Timer_Tick(object sender, EventArgs e) { this.Opacity = this.Opacity - .1; if (this.Opacity == 0) { Next_Timer.Stop(); this.Hide(); Converter Converter = new Converter(G_Textbox.Text); Converter.ShowDialog(); } }