/// <summary> /// Notifies the <see cref="P:Parent"/> that the encryption level has changed. /// </summary> /// <param name="encryptionLevel">The <see cref="T:WebBrowserEncryptionLevel">encryption level</see>.</param> public override void SetEncryptionLevel(WebBrowserEncryptionLevel encryptionLevel) { this.Parent.SetEncryptionLevel(encryptionLevel); var e = new WebBrowserEncryptionLevelChangedEventArgs(encryptionLevel); this.Parent.OnEncryptionLevelChanged(e); }
private void SetEncrytionPrivate(WebBrowserContainer webBrowserContainer) { WebBrowserEncryptionLevel encryptionLevel = webBrowserContainer.WebBrowserEncryptionLevel; if (encryptionLevel != WebBrowserEncryptionLevel.Insecure) { this.stautsStripEncrytionLabel.ToolTipText = encryptionLevel.ToString(); this.stautsStripEncrytionLabel.Visible = true; } else { this.stautsStripEncrytionLabel.Visible = false; } }
internal override void OnWebHostSecurityChanged(object sender, Mono.WebBrowser.SecurityChangedEventArgs e) { switch (e.State) { case Mono.WebBrowser.SecurityLevel.Insecure: securityLevel = WebBrowserEncryptionLevel.Insecure; break; case Mono.WebBrowser.SecurityLevel.Mixed: securityLevel = WebBrowserEncryptionLevel.Mixed; break; case Mono.WebBrowser.SecurityLevel.Secure: securityLevel = WebBrowserEncryptionLevel.Bit56; break; } }
/// <summary> /// Sets the value of the <see cref="F:System.Windows.Forms.WebBrowser.encryptionLevel"/> private field. /// </summary> /// <param name="value">The new value of the <see cref="F:System.Windows.Forms.WebBrowser.encryptionLevel"/> field.</param> private void SetEncryptionLevel(WebBrowserEncryptionLevel value) { encryptionLevelFieldInfo.SetValue(this, value); }
/// <summary> /// Initializes a new instance of the <see cref="WebBrowserEncryptionLevelChangedEventArgs"/> class with the <see cref="WebBrowser"/> and <see cref="Url"/> properties set to the given values. /// </summary> /// <param name="encryptionLevel">The encryption level.</param> public WebBrowserEncryptionLevelChangedEventArgs(WebBrowserEncryptionLevel encryptionLevel) { this.EncryptionLevel = encryptionLevel; }
internal override void OnWebHostSecurityChanged (object sender, Mono.WebBrowser.SecurityChangedEventArgs e) { switch (e.State) { case Mono.WebBrowser.SecurityLevel.Insecure: securityLevel = WebBrowserEncryptionLevel.Insecure; break; case Mono.WebBrowser.SecurityLevel.Mixed: securityLevel = WebBrowserEncryptionLevel.Mixed; break; case Mono.WebBrowser.SecurityLevel.Secure: securityLevel = WebBrowserEncryptionLevel.Bit56; break; } }
/// <summary> /// Notifies the <see cref="P:Parent"/> that the encryption level has changed. /// </summary> /// <param name="encryptionLevel">The <see cref="T:WebBrowserEncryptionLevel">encryption level</see>.</param> public abstract void SetEncryptionLevel(WebBrowserEncryptionLevel encryptionLevel);
private void WebBrowserEx_EncryptionLevelChanged(object sender, EventArgs e) { this.encryptionLevel = this.WebBrowserEx.EncryptionLevel; Trace.WriteLine(string.Format("EncryptionLevel={0}", encryptionLevel), string.Format("[{0}] WebBrowserEx.EncryptionLevelChanged", this.instance)); this.form.SetEncrytion(this); }