/// <summary> /// 大屏显示设置参数 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void button_set_Click(object sender, EventArgs e) { if (!Int32.TryParse(this.textBox_fx_img_num.Text.Trim(), out fx_img_num)) { MessageBox.Show("请输入正确的图片数量."); return; } if (!Int32.TryParse(this.textBox_fs_row.Text.Trim(), out fs_pic_row)) { MessageBox.Show("请输入正确的全屏行值."); return; } if (!Int32.TryParse(this.textBox_fs_col.Text.Trim(), out fs_pic_col)) { MessageBox.Show("请输入正确的全屏列值."); return; } //Todo: 设置图片的根目录 m_big_screen = new BigScreen(fs_pic_row, fs_pic_col, fx_img_num); this.button_launch_fs.Enabled = true; //Todo:可以改成true,这样用户可以随意设置大屏大小 this.button_set.Enabled = false; }
private BigScreen m_big_screen;//大屏程序 public ConsoleScreen() { InitializeComponent(); /* * 根据选手的选题,初始化大屏图片 (提供图片basedir以及题号) * 图片库的命名规范是 * basedir/ * *******--A1 ————001.jpg 002.jpg 003.jpg * *******--A2 * *******--A3 * *******-B1等 */ m_big_screen = new BigScreen(const_page_num, const_pages); m_big_screen.InitFxImageList(); }
private BigScreen m_big_screen;//大屏程序 public ConsoleScreen() { InitializeComponent(); m_big_screen = new BigScreen(); }