Пример #1
0
        private int m_study_time = 3;               //学习3秒钟
        /// <summary>
        /// 设置大屏的参数
        /// </summary>
        /// <param name="pages"></param>
        /// <param name="ps_pic_row"></param>
        /// <param name="ps_pic_col"></param>
        /// <param name="fs_pic_row"></param>
        /// <param name="fs_pic_col"></param>
        /// <param name="fx_img_num"></param>
        /// <param name="pic_dir"></param>
        /// <param name="fx_id"></param>
        public BigScreen(int fs_pic_row = 5, int fs_pic_col = 5, int fx_img_num = 25, String pic_dir = "..\\..\\pic\\", String fx_id = "A1")
        {
            InitializeComponent();

            m_fs_pic_row = fs_pic_row;
            m_fs_pic_col = fs_pic_col;

            m_fx_img_num = fx_img_num;

            m_pic_dir = pic_dir; //设置存放图片的路径
            m_fx_id   = fx_id;   //分形题目编号,A1,A2...

            m_img_list = new FxImageList(m_pic_dir, m_fx_id, m_fx_img_num);
            InitFxImageList();

            backgroundWorker1.WorkerReportsProgress = true;
            backgroundWorker1.DoWork             += backgroundWorker1_DoWork;
            backgroundWorker1.ProgressChanged    += backgroundWorker1_ProgressChanged;
            backgroundWorker1.RunWorkerCompleted += backgroundWorker1_RunWorkerCompleted;

            backgroundWorker2.WorkerReportsProgress = true;
            backgroundWorker2.DoWork             += backgroundWorker2_DoWork;
            backgroundWorker2.ProgressChanged    += backgroundWorker2_ProgressChanged;
            backgroundWorker2.RunWorkerCompleted += backgroundWorker2_RunWorkerCompleted;
        }
Пример #2
0
        private int m_pic_col;                      //大屏图片空间列数


        /***
         *
         * Todo:根据实际情况调整参数
         **/
        public BigScreen(int page_num = 1, int pages = 3, int pic_row = 1, int pic_col = 5, String pic_dir = "..\\..\\pic\\", String fx_id = "A1", int fx_img_num = 15)
        {
            InitializeComponent();
            m_page_num   = page_num; //默认第一页
            m_pages      = pages;
            m_pic_dir    = pic_dir;  //设置存放图片的路径
            m_fx_id      = fx_id;    //分形题目编号,A1,A2...
            m_fx_img_num = fx_img_num;
            m_img_list   = new FxImageList(m_pic_dir, m_fx_id, m_fx_img_num);
            InitFxImageList();

            m_pic_row             = pic_row;
            m_pic_col             = pic_col;
            m_pic_list            = new List <PictureBox>(m_pic_row * m_pic_col);
            m_label_fx_param_list = new List <Label>(m_pic_row * m_pic_col);
            m_label_fx_seq_list   = new List <Label>(m_pic_row * m_pic_col);

            //Todo: 后面改成4*5的
            m_pic_list.Add(pictureBox1);
            m_pic_list.Add(pictureBox2);
            m_pic_list.Add(pictureBox3);
            m_pic_list.Add(pictureBox4);
            m_pic_list.Add(pictureBox5);

            //Todo: 后面改成4*5的
            m_label_fx_param_list.Add(label_param1);
            m_label_fx_param_list.Add(label_param2);
            m_label_fx_param_list.Add(label_param3);
            m_label_fx_param_list.Add(label_param4);
            m_label_fx_param_list.Add(label_param5);

            //Todo: 后面改成4*5的
            m_label_fx_seq_list.Add(label_fx1);
            m_label_fx_seq_list.Add(label_fx2);
            m_label_fx_seq_list.Add(label_fx3);
            m_label_fx_seq_list.Add(label_fx4);
            m_label_fx_seq_list.Add(label_fx5);

            LoadFxPicture(m_page_num);
        }