示例#1
0
 public GameLayoutManager()
     :
     base(typeof(GameLayoutManager).ToString())
 {
     mScriptFactoryManager = new ScriptFactoryManager();
     mLayoutTypeToName     = new Dictionary <LAYOUT_TYPE, string>();
     mLayoutNameToType     = new Dictionary <string, LAYOUT_TYPE>();
     mLayoutTypeList       = new Dictionary <LAYOUT_TYPE, GameLayout>();
     mLayoutNameList       = new Dictionary <string, GameLayout>();
     mLayoutAsyncList      = new Dictionary <string, LayoutAsyncInfo>();
 }
        public void Setup()
        {
            _mgr = new ScriptFactoryManager();
            _mgr.AddBrowserWindow("normalWindow");
            _wb = new WebBrowser();
            var strm = new MemoryStream();

            _wb.DocumentStream = strm;

            if (_wb.Document == null)
            {
                return;
            }
            HtmlDocument doc  = _wb.Document.OpenNew(true);
            string       html = File.ReadAllText(@"C:\Work\TestRecorder3\tests\html\main.html");

            if (doc != null)
            {
                doc.Write(html);
            }
        }