Пример #1
0
        private void button5_Click(object sender, EventArgs e)
        {
            String ty = String.Empty;

            if (treeView1.SelectedNode == null)
            {
                MessageBox.Show("请先选择目标科目或章节!", "警告");
                return;
            }
            if (treeView1.SelectedNode.Parent == null)
            {
                ty = treeView1.SelectedNode.Text;
            }
            else
            {
                ty = treeView1.SelectedNode.Parent.Text;
            }
            tianjia form = new tianjia(ty);

            form.ShowDialog();
        }
Пример #2
0
        private void button4_Click(object sender, EventArgs e)
        {
            tianjia form = new tianjia("1");

            form.ShowDialog();
        }