private void AdminForm_Load(object sender, EventArgs e) { //解决窗体闪烁 this.SetStyle(ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw | ControlStyles.AllPaintingInWmPaint, true); tabControl1.Visible = false; ViewHelper.size = this.Size; questionInfoForm.MdiParent = this; userInfoForm.MdiParent = this; questionInfoForm.Show(); userInfoForm.Show(); //toolTip1.SetToolTip(button1, "配置脚本内容"); toolTip1.SetToolTip(pictureBox1, "创建一个新的脚本"); //文本选择题初始化 t_dialog = new TextQuestionDialog(); t_dialog.Owner = this; show_text_Questions(); //图片选择题初始化 i_dialog = new ImageQuestionFrom(); i_dialog.Owner = this; show_img_Questions(); //视频列表初始化 //v_dialog = new VideoEditedFrom(); //v_dialog.Owner = this; show_video(); //角色列表初始化 r_dialog = new AddRoleFrom(); r_dialog.Owner = this; show_role(); // 初始化加载全部场景 this.getAllSence(); }
private void loadAddRoleFrom() { AddRoleFrom addRole = new AddRoleFrom(); addRole.ShowDialog(); }