/// <summary>Raises the <see cref="ProgressChanged"/> event.</summary>
        /// <param name="e">The data for the event.</param>
        protected virtual void OnProgressChanged(GeckoProgressEventArgs e)
        {
            var evnt = (EventHandler <GeckoProgressEventArgs>)Events[ProgressChangedEvent];

            if (evnt != null)
            {
                evnt(this, e);
            }
        }
        /// <summary>Raises the <see cref="ProgressChanged"/> event.</summary>
        /// <param name="e">The data for the event.</param>
        protected virtual void OnProgressChanged(GeckoProgressEventArgs e)
        {
            EventHandler <GeckoProgressEventArgs> handler = ProgressChanged;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Beispiel #3
0
        public void browser_ProgressChanged(object sender, Gecko.GeckoProgressEventArgs e)
        {
            progressBar.Properties.Maximum = (int)e.MaximumProgress;

            if ((int)e.CurrentProgress <= 0)
            {
                progressBar.EditValue = 0;
            }
            else
            {
                progressBar.EditValue = (int)e.CurrentProgress;
            }
        }
		/// <summary>Raises the <see cref="ProgressChanged"/> event.</summary>
		/// <param name="e">The data for the event.</param>
		protected virtual void OnProgressChanged( GeckoProgressEventArgs e )
		{
			var evnt = ( EventHandler<GeckoProgressEventArgs> ) Events[ ProgressChangedEvent ];
			if ( evnt != null ) evnt( this, e );
		}
Beispiel #5
0
 private void OnProgressChanged(GeckoProgressEventArgs geckoProgressEventArgs)
 {
 }
Beispiel #6
0
 void wbBrowser_ProgressChanged(object sender, GeckoProgressEventArgs e)
 {
     progressbar.Maximum = (int)e.MaximumProgress;
     var currentProgress = (int)e.CurrentProgress;
     if (currentProgress <= progressbar.Maximum)
         progressbar.Value = (int)e.CurrentProgress;
 }