资源简介

该系统为一基于wpf技术实现的试卷生成系统,系统包括题库管理、用户管理和试卷生成几大模块。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Windows.Forms;
using System.Data.OleDb;
using System.IO;

namespace ExaminationSystem
{
    /// 
    /// QuestionOperation.xaml 的交互逻辑
    /// 

    public partial class QuestionOperation : Window
    {
        private string mode = ““;
        private Question question = new Question();
        //private FileStream imgStream = new FileStream(“D:\\Program Files\\Microsoft Visual Studio\\MyProjects\\ExaminationSystem\\ExaminationSystem\\Image\\img.jpg“ FileMode.Open);

        public QuestionOperation()
        {
            InitializeComponent();

            mode = “NQ“;
            LoadInfo();
        }

        public QuestionOperation(Question question)
        {
            InitializeComponent();

            mode = “UQ“;
            //初始化窗口控件
            LoadInfo();

            this.question.AuthorId = question.AuthorId;
            this.question.ChapterId = question.ChapterId;
            this.question.CorrectAnswer = question.CorrectAnswer;
            lv_answer.Items.Add(question.CorrectAnswer);
            this.question.CourseChapter = question.CourseChapter;
            cb_chapterName.SelectedItem = question.CourseChapter;
            this.question.CourseName = question.CourseName;
            cb_courseName.SelectedItem = question.CourseName;
            this.question.Difficulty = question.Difficulty;
            SetDifficult(question.Difficulty);
            this.question.AnswerPicturePath = question.AnswerPicturePath;
            tb_picturePath.Text = question.AnswerPicturePath;
            //if (question.AnswerPicturePath.Trim().Length > 0)
            //{
            //    img_AnswerPicture.Source = question.AnswerPicturePath;
            //}
            this.question.Quetitle = question.Quetitle;
            rtb_question.Document.Blocks.Clear();
            rtb_question.AppendText(question.Quetitle);
            this.question.QuestionId = question.QuestionId;
            this.question.Type = question.Type;
            cb_questionType.SelectedItem = question.Type;
            foreach (string erroranswer in question.errorAnswerList)
            {
                this.question.errorAnswerList.Add(erroranswer);
                lv_answer.Items.Add(erroranswer);
            }
        }

        public int GetDifficult()
        {
            int difficult;
            if ((bool)rb_easy.IsChecked)
            {
                difficult = 0;
            }
            else if ((bool)rb_normal.IsChecked)
            {
                difficult = 1;
            }
            else if ((bool)rb_difficult.IsChecked)

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       6478  2010-05-16 17:16  ExaminationSystem\ExaminationSystem\ExaminationSystem\AddUser.xaml

     文件       7038  2010-05-07 17:22  ExaminationSystem\ExaminationSystem\ExaminationSystem\AddUser.xaml.cs

     文件       1947  2010-05-16 17:16  ExaminationSystem\ExaminationSystem\ExaminationSystem\Admin.xaml

     文件       3295  2010-05-09 12:24  ExaminationSystem\ExaminationSystem\ExaminationSystem\Admin.xaml.cs

     文件        330  2010-05-09 12:24  ExaminationSystem\ExaminationSystem\ExaminationSystem\App.xaml

     文件        313  2010-05-09 11:59  ExaminationSystem\ExaminationSystem\ExaminationSystem\App.xaml.cs

     文件     437248  2010-05-25 15:51  ExaminationSystem\ExaminationSystem\ExaminationSystem\bin\Debug\ExaminationSystem.exe

     文件     304640  2010-05-25 15:51  ExaminationSystem\ExaminationSystem\ExaminationSystem\bin\Debug\ExaminationSystem.pdb

     文件      14328  2010-05-26 17:32  ExaminationSystem\ExaminationSystem\ExaminationSystem\bin\Debug\ExaminationSystem.vshost.exe

     文件        490  2007-07-21 01:33  ExaminationSystem\ExaminationSystem\ExaminationSystem\bin\Debug\ExaminationSystem.vshost.exe.manifest

     文件       2747  2010-05-16 17:17  ExaminationSystem\ExaminationSystem\ExaminationSystem\ChangePwd.xaml

     文件       3252  2010-05-06 12:09  ExaminationSystem\ExaminationSystem\ExaminationSystem\ChangePwd.xaml.cs

     文件        612  2010-05-08 12:55  ExaminationSystem\ExaminationSystem\ExaminationSystem\CourseInfo.cs

     文件       2378  2010-05-25 10:43  ExaminationSystem\ExaminationSystem\ExaminationSystem\CourseOperation.xaml

     文件       5684  2010-05-08 17:02  ExaminationSystem\ExaminationSystem\ExaminationSystem\CourseOperation.xaml.cs

     文件       3991  2010-05-07 19:53  ExaminationSystem\ExaminationSystem\ExaminationSystem\DBHelper.cs

     文件       5993  2010-05-25 09:35  ExaminationSystem\ExaminationSystem\ExaminationSystem\ExamAutoBuild.xaml

     文件      29992  2010-05-25 15:00  ExaminationSystem\ExaminationSystem\ExaminationSystem\ExamAutoBuild.xaml.cs

     文件       9606  2010-05-16 09:12  ExaminationSystem\ExaminationSystem\ExaminationSystem\ExaminationSystem.csproj

     文件        168  2010-05-13 23:46  ExaminationSystem\ExaminationSystem\ExaminationSystem\ExaminationSystem.csproj.user

     文件       7485  2010-05-25 15:51  ExaminationSystem\ExaminationSystem\ExaminationSystem\ExaminationView.xaml

     文件      30514  2010-05-25 15:47  ExaminationSystem\ExaminationSystem\ExaminationSystem\ExaminationView.xaml.cs

     文件       1506  2010-05-14 05:14  ExaminationSystem\ExaminationSystem\ExaminationSystem\ExamInfo.cs

     文件       8666  2010-05-25 09:35  ExaminationSystem\ExaminationSystem\ExaminationSystem\ExamManualBuild.xaml

     文件      16954  2010-05-16 12:18  ExaminationSystem\ExaminationSystem\ExaminationSystem\ExamManualBuild.xaml.cs

     文件       1187  2010-05-14 04:38  ExaminationSystem\ExaminationSystem\ExaminationSystem\ExamQueTypeInfo.cs

     文件       2157  2009-06-03 12:31  ExaminationSystem\ExaminationSystem\ExaminationSystem\Image\addUser.jpg

     文件        893  2009-05-09 12:43  ExaminationSystem\ExaminationSystem\ExaminationSystem\Image\center.jpg

     文件       1818  2010-05-04 09:30  ExaminationSystem\ExaminationSystem\ExaminationSystem\Image\changeUser.bmp

     文件        907  2009-05-09 12:51  ExaminationSystem\ExaminationSystem\ExaminationSystem\Image\copy.jpg

............此处省略100个文件信息

评论

共有 条评论