private void button2_Click(object sender, EventArgs e) { if (!string.IsNullOrWhiteSpace(cathegoryComboBox.Text)) { TestForm tstForm = new TestForm(cathegoryComboBox.Text); this.Hide(); tstForm.Show(); } else { MessageBox.Show("Не выбрана категория"); } }
private void button1_Click(object sender, EventArgs e) { currentTextPart++; if (currentTextPart != currentText.TopicText.Count) { FormFiller(currentTextPart); } else { TestForm tst = new TestForm(currentTheme); tst.Show(); this.Hide(); } }