/// <summary>Raises the <see cref="WindowSetBounds"/> event.</summary> /// <param name="e">The data for the event.</param> protected virtual void OnWindowSetBounds(GeckoWindowSetBoundsEventArgs e) { var evnt = (EventHandler <GeckoWindowSetBoundsEventArgs>)Events[WindowSetBoundsEvent]; if (evnt != null) { evnt(this, e); } }
private void webBrowser_WindowSetBounds(object sender, GeckoWindowSetBoundsEventArgs e) { this.SetBounds(e.Bounds.X, e.Bounds.Y, e.Bounds.Width, e.Bounds.Height, e.BoundsSpecified); }
/// <summary>Raises the <see cref="WindowSetBounds"/> event.</summary> /// <param name="e">The data for the event.</param> protected virtual void OnWindowSetBounds( GeckoWindowSetBoundsEventArgs e ) { var evnt = (EventHandler<GeckoWindowSetBoundsEventArgs>)Events[WindowSetBoundsEvent]; if ( evnt != null ) evnt( this, e ); }