private void citationStyleButton_Click(object sender, EventArgs e) { if (allowed&&allowed2) { // APA this.Hide(); if (styleBox.SelectedIndex == 0) { apaWindow apa = new apaWindow(); apa.setMedium(mediaBox.SelectedIndex); apa.ShowDialog(); } else if (styleBox.SelectedIndex == 1) { mlaWindow mla = new mlaWindow(); mla.setMedium(mediaBox.SelectedIndex); mla.ShowDialog(); } this.Close(); } else { MessageBox.Show("Choose Citation Style and Medium."); } }
private void citationStyleButton_Click(object sender, EventArgs e) { if (allowed && allowed2) { // APA this.Hide(); if (styleBox.SelectedIndex == 0) { apaWindow apa = new apaWindow(); apa.setMedium(mediaBox.SelectedIndex); apa.ShowDialog(); } else if (styleBox.SelectedIndex == 1) { mlaWindow mla = new mlaWindow(); mla.setMedium(mediaBox.SelectedIndex); mla.ShowDialog(); } this.Close(); } else { MessageBox.Show("Choose Citation Style and Medium."); } }