private void resetPanels()
        {
            inResetPanels = true;
            for (int i = 0; i < dockContentes.Count; i++)
            {
                DockContent content = (DockContent)dockContentes[i];
                if (content.IsHidden)
                {
                    content.Show(panel_DockPanel);
                }
            }
            form_MActorList.DockTo(panel_DockPanel, DockStyle.Left);
            form_MFrameEdit.DockTo(panel_DockPanel, DockStyle.Fill);
            form_MFrameLevel.DockTo(panel_DockPanel, DockStyle.Right);

            form_MImgsList.DockTo(form_MActorList.Pane, DockStyle.Fill, 1);
            form_MAnimPW.DockTo(form_MActorList.Pane, DockStyle.Fill, 2);
            form_MCLib.DockTo(form_MFrameEdit.Pane, DockStyle.Top, 0);
            form_MTimeLine.DockTo(form_MCLib.Pane, DockStyle.Fill, 0);
            form_MConfig.DockTo(form_MFrameLevel.Pane, DockStyle.Bottom, 0);
            this.refreshDockState();
            inResetPanels = false;
            //主动重新加载贴图
            if (form_MFrameEdit.loaded || form_MAnimPW.loaded)
            {
                form_MImgsList.mImgsManager.rebindTextures();
                ConstTextureImgs.rebindTextures();
            }
            //主动记录Dock面板XML配置信息
            panel_DockPanel.SaveAsXml(layoutPath);
        }
 private void 刷新所有贴图ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (form_MFrameEdit.loaded || form_MAnimPW.loaded)
     {
         form_MImgsList.mImgsManager.rebindTextures();
         ConstTextureImgs.rebindTextures();
         form_MFrameEdit.UpdateRegion_EditFrame();
     }
 }
 private void Form_GLViewParent_RegionChanged(object sender, EventArgs e)
 {
     if (glContextRereated >= 0)
     {
         glContextRereated = -1;
         Console.WriteLine("Form_MFrameEdit_RegionChanged");
         if (!Form_MAnimation.inResetPanels)
         {
             form_MA.form_MImgsList.mImgsManager.rebindTextures();
             ConstTextureImgs.rebindTextures();
         }
         Update_GlView();
     }
 }
 private void 贴图插值渲染ToolStripMenuItem_CheckStateChanged(object sender, EventArgs e)
 {
     if (noCheckEvent)
     {
         return;
     }
     Consts.textureLinear = 贴图插值渲染ToolStripMenuItem.Checked;
     if (form_MFrameEdit.loaded || form_MAnimPW.loaded)
     {
         form_MImgsList.mImgsManager.rebindTextures();
         ConstTextureImgs.rebindTextures();
         form_MFrameEdit.UpdateRegion_EditAndFrameLevel();
     }
 }