コード例 #1
0
        private void MenuForm_Load(object sender, EventArgs e)
        {
            openWebFormDelegate    = new openWebForm(this.openWebFormByUrl);
            stockDelegate          = new InNoneOutVoidDelegate(this.Stock);
            showNewMessageDelegate = new ShowNewMessageDelegate(this.showNewMessage);
            // wbh = new WebBrowserHelper();
            if (wbh != null)
            {
                wbh.init(webBrowser1, MainForm.menuErrHtml);
            }
            if (jbh != null)
            {
                jbh.init(webBrowser1, this);
            }
            this.webBrowser1.ScriptErrorsSuppressed = true;
            this.webBrowser1.ScrollBarsEnabled      = false;
            // string str1 = System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName;
            //  webBrowser1.ObjectForScripting = this;
            // webBrowser1.ScriptErrorsSuppressed = true;


            stockIcon.Text = Program.getMyTextClassByIndex(0);
            this.Location  = new Point(0 - this.Width, 0 - this.Height);
            // this.Hide();
            if (isTest)
            {
                this.SizeChanged    += new System.EventHandler(this.WebForm_SizeChanged);
                this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Sizable;
            }
            loadByUrl();
        }
コード例 #2
0
ファイル: MenuForm.cs プロジェクト: radtek/white_ajgl
        private void MenuForm_Load(object sender, EventArgs e)
        {
            base.mainFormLoad();
            stockDelegate          = new InNoneOutVoidDelegate(this.Stock);
            showNewMessageDelegate = new ShowNewMessageDelegate(this.showNewMessage);
            //  wbh = new WebBrowserHelper();
            if (wbh != null)
            {
                wbh.init(webBrowser1, MainForm.menuErrHtml);
            }
            if (jbh != null)
            {
                jbh.init(webBrowser1, this);
            }
            this.webBrowser1.ScriptErrorsSuppressed = true;
            this.webBrowser1.ScrollBarsEnabled      = false;
            // string str1 = System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName;
            // webBrowser1.ObjectForScripting = this;
            // webBrowser1.ScriptErrorsSuppressed = true;


            //this.WindowState = FormWindowState.Maximized;
            // this.MaximumSize = new System.Drawing.Size(100, 100);


            // loginUrl = Convert.ToString(ConfigurationManager.AppSettings["loginUrl"]);
            // roomNum = Convert.ToString(ConfigurationManager.AppSettings["roomNum"]);

            // this.menuX = 100;
            // this.menuY = 100;
            stockIcon.Text = Program.getMyTextClassByIndex(0);
            this.Location  = new Point(0 - this.Width, 0 - this.Height);
        }