private void butPic_Click(object sender, EventArgs e)
        {
            if (this.Tag.Equals(0) || this.Tag.Equals(2) || this.Tag.Equals(4))//学生新建,修改和重做模式
            {
                /*if (txtALG.Text != "" && txtDescription.Text != "" && txtQuestion.Text != "" && txtRunning.Text != "")
                 * {*/
                F_PicView New = new F_PicView();
                New.MdiParent   = this.MdiParent;
                New.Tag         = this.Tag;                  //设置相应的模式
                New.Text        = "图片操作";
                New.WindowState = FormWindowState.Maximized; //最大化
                New.Show();

                /*}
                 * else
                 * {
                 *  MessageBox.Show("请先填写实验报告内容再点击此按钮!", "提示");
                 * }*/
            }
            else
            {
                if (this.Tag.Equals(1))//学生查看实验报告模式
                {
                    DataClass.Student.Student_ID = DataClass.MyMeans.Login_ID;
                    F_PicView New = new F_PicView();
                    New.MdiParent   = this.MdiParent;
                    New.Tag         = 3;                         //设置为学生查看实验报告图片模式
                    New.Text        = "图片查看";
                    New.WindowState = FormWindowState.Maximized; //最大化
                    New.Show();
                }
                else
                {
                    if (this.Tag.Equals(3))//教师查看实验报告模式
                    {
                        F_PicView New = new F_PicView();
                        New.MdiParent   = this.MdiParent;
                        New.Tag         = 1;                         //设置为教师查看实验报告图片模式
                        New.Text        = "图片查看";
                        New.WindowState = FormWindowState.Maximized; //最大化
                        New.Show();
                    }
                }
            }
        }
 private void butPic_Click(object sender, EventArgs e)
 {
     if (this.Tag.Equals(2))
     {
         F_PicView picview = new F_PicView();
         DataClass.Student.Student_ID = this.txtStudentNum.Text.Trim();
         picview.MdiParent            = this.MdiParent;
         picview.Tag  = 3;
         picview.Text = "查看附图";
         picview.Show();
     }
     else
     {
         F_PicView picview = new F_PicView();
         DataClass.Student.Student_ID = this.txtStudentNum.Text.Trim();
         picview.MdiParent            = this.MdiParent;
         picview.Tag  = 1;
         picview.Text = "查看附图";
         picview.Show();
     }
 }
 private void butPic_Click(object sender, EventArgs e)
 {
     if (this.Tag.Equals(2))
     {
         F_PicView picview = new F_PicView();
         DataClass.Student.Student_ID = this.txtStudentNum.Text.Trim();
         picview.MdiParent = this.MdiParent;
         picview.Tag = 3;
         picview.Text = "查看附图";
         picview.Show();
     }
     else
     {
         F_PicView picview = new F_PicView();
         DataClass.Student.Student_ID = this.txtStudentNum.Text.Trim();
         picview.MdiParent = this.MdiParent;
         picview.Tag = 1;
         picview.Text = "查看附图";
         picview.Show();
     }
 }
 private void butPic_Click(object sender, EventArgs e)
 {
     if (this.Tag.Equals(0) || this.Tag.Equals(2) || this.Tag.Equals(4))//学生新建,修改和重做模式
     {
         /*if (txtALG.Text != "" && txtDescription.Text != "" && txtQuestion.Text != "" && txtRunning.Text != "")
         {*/
         F_PicView New = new F_PicView();
         New.MdiParent = this.MdiParent;
         New.Tag = this.Tag;//设置相应的模式
         New.Text = "图片操作";
         New.WindowState = FormWindowState.Maximized;//最大化
         New.Show();
         /*}
         else
         {
             MessageBox.Show("请先填写实验报告内容再点击此按钮!", "提示");
         }*/
     }
     else
     {
         if (this.Tag.Equals(1))//学生查看实验报告模式
         {
             DataClass.Student.Student_ID = DataClass.MyMeans.Login_ID;
             F_PicView New = new F_PicView();
             New.MdiParent = this.MdiParent;
             New.Tag = 3;//设置为学生查看实验报告图片模式
             New.Text = "图片查看";
             New.WindowState = FormWindowState.Maximized;//最大化
             New.Show();
         }
         else
         {
             if (this.Tag.Equals(3))//教师查看实验报告模式
             {
                 F_PicView New = new F_PicView();
                 New.MdiParent = this.MdiParent;
                 New.Tag = 1;//设置为教师查看实验报告图片模式
                 New.Text = "图片查看";
                 New.WindowState = FormWindowState.Maximized;//最大化
                 New.Show();
             }
         }
     }
 }