示例#1
0
文件: Form1.cs 项目: yooyke/work
 private void Form1_Shown(object sender, EventArgs e)
 {
     loader = new Loader(panel.Width, panel.Height, (int)Loader.ModeType.Normal);
     loader.OnEventJS += new OxEventHandler(loader_OnEventJS);
     loader.Run(panel.Handle);
 }
示例#2
0
        private void OxViewerCtl_Load(object sender, EventArgs e)
        {
            loader = new Loader(windowWidth, windowHeight, viewerMode);
            loader.OnEventJS += new OxEventHandler(loader_OnEventJS);
            windowWidth = loader.Width;
            windowHeight = loader.Height;

            this.Width = windowWidth;
            this.Height = windowHeight;

            Show();

            loader.Run(Handle);
        }