//Редактирование различных узлов дерева
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            int level = treeView1.SelectedNode.Level;

            if (level == 0)
            {
                tsBtnAddQuestion.Enabled = false;
                tsBtnAddExam.Enabled     = true;
                FormRedactSubject frs = new FormRedactSubject(this, ((TestAppLibrary.Subject)treeView1.SelectedNode.Tag).Id, true);
                frs.MdiParent = this;
                frs.Show();
            }
            else if (level == 1)
            {
                tsBtnAddExam.Enabled     = false;
                tsBtnAddQuestion.Enabled = true;
                FormRedactExam fre = new FormRedactExam(this, ((TestAppLibrary.Exam)treeView1.SelectedNode.Tag).Id, true);
                fre.MdiParent = this;
                fre.Show();
            }
            else if (level == 2)
            {
                tsBtnAddExam.Enabled     = false;
                tsBtnAddQuestion.Enabled = false;
                FormRedactAnswer fra = new FormRedactAnswer(this, ((TestAppLibrary.Question)treeView1.SelectedNode.Tag).Id, true);
                fra.MdiParent = this;
                fra.Show();
            }
        }
        //Просмотр различных узлов
        private void tsBtnPreview_Click(object sender, EventArgs e)
        {
            int level = treeView1.SelectedNode.Level;

            if (level == 0)
            {
                FormRedactSubject frs = new FormRedactSubject(this, ((TestAppLibrary.Subject)treeView1.SelectedNode.Tag).Id, false);
                frs.MdiParent = this;
                frs.Show();
            }
            if (level == 1)
            {
                FormRedactExam fre = new FormRedactExam(this, ((TestAppLibrary.Exam)treeView1.SelectedNode.Tag).Id, false);
                fre.MdiParent = this;
                fre.Show();
            }
            if (level == 2)
            {
                FormRedactAnswer frq = new FormRedactAnswer(this, ((TestAppLibrary.Question)treeView1.SelectedNode.Tag).Id, false);
                frq.MdiParent = this;
                frq.Show();
            }
        }