コード例 #1
0
        private void BrowserWindow_LoadingFrame(object sender, LoadingFrameEventArgs e)
        {
            DoubleAnimation animation = new DoubleAnimation();

            animation.From     = BrowserWindow.Opacity;
            animation.To       = 0;
            animation.Duration = new Duration(TimeSpan.FromMilliseconds(500));
            //BrowserWindow.BeginAnimation(OpacityProperty, animation);
        }
コード例 #2
0
ファイル: TabView.cs プロジェクト: webmaster442/McuTools
 private void OnBeginLoading(object sender, LoadingFrameEventArgs e)
 {
     // By now we have already navigated to the address.
     // Clear the old favicon. The default style, will assign
     // a default (globe) icon to the tab when null is set for
     // FaviconProperty.
     if (e.IsMainFrame)
     {
         this.ClearValue(TabView.FaviconPropertyKey);
     }
 }
コード例 #3
0
		private void webBrowser_LoadingFrame(object sender, LoadingFrameEventArgs e)
		{
			if (!webBrowser.IsDocumentReady)
				return;

			dynamic document = (JSObject) webBrowser.ExecuteJavascriptWithResult("document");

			if (document == null)
				return;

			using (document)
			{
				dynamic userLoginField = document.getElementById("user_login");

				if (userLoginField == null)
					return;

				using (userLoginField)
				{
					try
					{
						var value = (string) userLoginField.value;

						if (!string.IsNullOrEmpty(value))
						{
							if (string.IsNullOrEmpty(user.Name))
							{
								user.Name = value;
							}
							else if (string.Compare(user.Name, value, StringComparison.OrdinalIgnoreCase) != 0)
							{
								saveAccessToken = false;
							}
						}
					}
					catch
					{
						saveAccessToken = true;
					}
				}
			}
		}
コード例 #4
0
        private void webControl_BeginLoading(object sender, LoadingFrameEventArgs e)
        {
            if (!e.IsMainFrame)
            {
                return;
            }

            // Clear the old favicon.
            if (this.Icon != null)
            {
                this.Icon.Dispose();
            }

            // Restore the default.
            ComponentResourceManager resources = new ComponentResourceManager(typeof(WebDocument));

            this.Icon = ((Icon)(resources.GetObject("$this.Icon")));

            if (this.DockPanel != null)
            {
                this.DockPanel.Refresh();
            }
        }
コード例 #5
0
 private void web_LoadingFrame(object sender, LoadingFrameEventArgs e)
 {
     flatTextBox.RightContent = Resources["appbar_cancel"];
 }
コード例 #6
0
 private void web_LoadingFrame(object sender, LoadingFrameEventArgs e)
 {
     flatTextBox.RightContent = Resources["appbar_cancel"];
 }
コード例 #7
0
 private void OnLoadingFrame(object sender, LoadingFrameEventArgs e)
 {
     Navigating?.Invoke(this, PageLoadingEventArgs.Indetermitate);
 }
コード例 #8
0
 private void WebView_LoadingFrame(object sender, LoadingFrameEventArgs e)
 {
     CheckUrl(e.Url.ToString());
 }
コード例 #9
0
 private void Awesomium_Windows_Forms_WebControl_LoadingFrame(object sender, LoadingFrameEventArgs e)
 {
     this.labelNavigationStatus.Text("Loading frame");
     this.labelBrowserSource.Text(this.webBrowser1.Source.ToString());
 }
コード例 #10
0
ファイル: MainForm.cs プロジェクト: AIBrain/UberScraper
 private void Awesomium_Windows_Forms_WebControl_LoadingFrame( object sender, LoadingFrameEventArgs e ) {
     this.labelNavigationStatus.Text( "Loading frame" );
     this.labelBrowserSource.Text( this.webBrowser1.Source.ToString() );
 }
コード例 #11
0
        //public void onBeginLoading(object sender, WebView.BeginLoadingEventArgs e)
        //{
        //    finishedLoading = false;
        //}

        private void WebView_LoadingFrame(object sender, LoadingFrameEventArgs e)
        {
            finishedLoading = false;
        }
コード例 #12
0
ファイル: Form1.cs プロジェクト: kandaStroge/LolAutoThings
 private void Awesomium_Windows_Forms_WebControl_LoadingFrame(object sender, LoadingFrameEventArgs e)
 {
     finishedLoading = false;
 }
コード例 #13
0
ファイル: AwesomiumWrapper.cs プロジェクト: gro-ove/actools
 private void OnLoadingFrame(object sender, LoadingFrameEventArgs e) {
     Navigating?.Invoke(this, PageLoadingEventArgs.Indetermitate);
 }
コード例 #14
0
        private void Page_Loading(object sender, LoadingFrameEventArgs e)
        {
            if (_availableHostNames != null
                && !_availableHostNames.Contains(e.Url.Host)
                && e.Url.ToString() != _errorUrl.ToString())
            {
                Browser.Stop();
                Browser.GoBack();
                Loading.Visibility = Visibility.Hidden;
            }
            else
            {
                Loading.Visibility = Visibility.Visible;
            }

            PageErrorControl.Visibility = Visibility.Hidden;
        }