示例#1
0
文件: Main.cs 项目: andibandiii/IE
        private void btnView_Click(object sender, EventArgs e)
        {
            ArticleView view = new ArticleView(this,
                                               new int[]
            {
                tabControl1.SelectedIndex,
                comboBoxes[tabControl1.SelectedIndex].SelectedIndex
            },
                                               (tabControl1.SelectedIndex == 1 ?
                                                listViewerArticles :
                                                listSearchArticles)[comboBoxes[tabControl1.SelectedIndex].SelectedIndex],
                                               (tabControl1.SelectedIndex == 1 ?
                                                listViewerAnnotations :
                                                listSearchAnnotations)[comboBoxes[tabControl1.SelectedIndex].SelectedIndex]);

            view.ShowDialog();
        }
示例#2
0
        private void btnView_Click(object sender, EventArgs e)
        {
            ArticleView view = new ArticleView(this,
                new int[]
                {
                    tabControl1.SelectedIndex,
                    comboBoxes[tabControl1.SelectedIndex].SelectedIndex
                },
                (tabControl1.SelectedIndex == 1 ?
                listViewerArticles :
                listSearchArticles)[comboBoxes[tabControl1.SelectedIndex].SelectedIndex],
                (tabControl1.SelectedIndex == 1 ?
                listViewerAnnotations :
                listSearchAnnotations)[comboBoxes[tabControl1.SelectedIndex].SelectedIndex]);

            view.ShowDialog();
        }