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.");
            }
        }
示例#2
0
        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.");
            }
        }