/// <summary> /// Lets mark such methods with some special tag, like: /// /// #ExtraInit MainWebView /// /// so we would be able to locate them, if necessary, with text search. /// </summary> protected override void InitializeComponent() //TODO: why override and where that initialization should really happen, here!? { base.InitializeComponent(); //some extra initialization, seciffic to current task only //this.AutomaticUpdater = new wyDay.Controls.AutomaticUpdater(); //((System.ComponentModel.ISupportInitialize)(this.automaticUpdater)).BeginInit(); //this.SuspendLayout(); // // webBrowser // //AutoValidate = System.Windows.Forms.AutoValidate.Disable; BrowserSettings = new CefSharp.BrowserSettings() { FileAccessFromFileUrlsAllowed = true, UniversalAccessFromFileUrlsAllowed = true, TextAreaResizeDisabled = true }; BackColor = System.Drawing.SystemColors.Window; //BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; CausesValidation = false; //Cursor = System.Windows.Forms.Cursors.Hand; Dock = System.Windows.Forms.DockStyle.Fill; Location = new System.Drawing.Point(0, 0); //Size = new System.Drawing.Size(300, 400); Name = "webBrowser"; RightToLeft = System.Windows.Forms.RightToLeft.No; TabIndex = 0; //Address = ViewUrl.ToString(); //this.ResumeLayout(false); //this.PerformLayout(); ContextMenu = null; MenuHandler = new MenuHandlerToDisableContextMenu(); loadMainViewUrlOnceOnInitialization = new Action(this.Load); }
/// <summary> /// Lets mark such methods with some special tag, like: /// /// #ExtraInit MainWebView /// /// so we would be able to locate them, if necessary, with text search. /// </summary> protected override void InitializeComponent() {//TODO: why override and where that initialization should really happen, here!? base.InitializeComponent(); //some extra initialization, seciffic to current task only //this.AutomaticUpdater = new wyDay.Controls.AutomaticUpdater(); //((System.ComponentModel.ISupportInitialize)(this.automaticUpdater)).BeginInit(); //this.SuspendLayout(); // // webBrowser // //AutoValidate = System.Windows.Forms.AutoValidate.Disable; BrowserSettings = new CefSharp.BrowserSettings() { FileAccessFromFileUrlsAllowed = true, UniversalAccessFromFileUrlsAllowed = true, TextAreaResizeDisabled = true }; BackColor = System.Drawing.SystemColors.Window; //BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; CausesValidation = false; //Cursor = System.Windows.Forms.Cursors.Hand; Dock = System.Windows.Forms.DockStyle.Fill; Location = new System.Drawing.Point(0, 0); //Size = new System.Drawing.Size(300, 400); Name = "webBrowser"; RightToLeft = System.Windows.Forms.RightToLeft.No; TabIndex = 0; //Address = ViewUrl.ToString(); //this.ResumeLayout(false); //this.PerformLayout(); ContextMenu = null; MenuHandler = new MenuHandlerToDisableContextMenu(); loadMainViewUrlOnceOnInitialization = new Action(this.Load); }