Example #1
0
 private void Webview_PageLoaded(object sender, PageLoadEventArgs e)
 {
     if (!webview.Control.Visible)
     {
         webview.Control.Visible = true;
         webview.PageLoaded     -= Webview_PageLoaded;
     }
 }
Example #2
0
 void OnDocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
 {
     object result = Utility.InvokeMethod(HtmlWindow, "SetClientMode", true);
     PageLoadEventArgs args = new PageLoadEventArgs();
     args.Result = (result != null && result.GetType() == typeof(Boolean) && (bool)result);
     args.Url = browser_.Url.ToString();
     PageLoad(this, args);
 }
            private void BrowserComponentOnPageLoadEnd(object sender, PageLoadEventArgs e)
            {
                string url = e.Url;

                if (TwitterUrls.IsTweetDeck(url) && url != BlankURL)
                {
                    pluginManager.Execute(PluginEnvironment.Notification, browserComponent);
                }
            }
Example #4
0
        void OnDocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
        {
            object            result = Utility.InvokeMethod(HtmlWindow, "SetClientMode", true);
            PageLoadEventArgs args   = new PageLoadEventArgs();

            args.Result = (result != null && result.GetType() == typeof(Boolean) && (bool)result);
            args.Url    = browser_.Url.ToString();
            PageLoad(this, args);
        }
Example #5
0
        private async void Webview_NavigationCompleted(object sender, WebViewControlNavigationCompletedEventArgs e)
        {
            if (e.IsSuccess && config.EnableScriptInterface)
            {
                string initScript = Resources.GetInitScript("Windows");
                await ExecuteScriptAsync(initScript);
            }

            PageLoaded?.Invoke(this, PageLoadEventArgs.GetFor(e.IsSuccess));
        }
Example #6
0
        private void Page_Load(object sender, PageLoadEventArgs e)
        {
            Logger.LogInformation($"The page titled '{Title}' is loaded.");

            litGreeting.Text = $"Hello, World! The time on the server is {DateTime.Now}";

            if (e.IsPostBack)
            {
                litPostBack.Text = "IsPostBack: True";
            }
        }
Example #7
0
        protected override void OnWindowLoad(object window)
        {
            load_flag_ = true;
            object result = Utility.InvokeMethod(window, "SetClientMode", true, IWindow);

            if (result != null && result.GetType() == typeof(Boolean) && (bool)result)
            {
                if (IWindow.onload_callback_ != null)
                {
                    Utility.CallFunc(IWindow.onload_callback_, IWindow);
                }
                js_window_callback_.OnLoad.Call(js_window_callback_);
                js_window_callback_.OnResize.Call(js_window_callback_);
            }

            PageLoadEventArgs args = new PageLoadEventArgs();

            args.Result = (result != null && result.GetType() == typeof(Boolean) && (bool)result);
            args.Url    = Url.ToString();
            PageLoad(this, args);
        }
Example #8
0
        protected override void OnWindowLoad(object window)
        {
            load_flag_ = true;
            object result = Utility.InvokeMethod(window, "SetClientMode", true, IWindow);
            if (result != null && result.GetType() == typeof(Boolean) && (bool)result)
            {
                if (IWindow.onload_callback_ != null)
                {
                    Utility.CallFunc(IWindow.onload_callback_, IWindow);
                }
                js_window_callback_.OnLoad.Call(js_window_callback_);
                js_window_callback_.OnResize.Call(js_window_callback_);
            }

            PageLoadEventArgs args = new PageLoadEventArgs();
            args.Result = (result != null && result.GetType() == typeof(Boolean) && (bool)result);
            args.Url = Url.ToString();
            PageLoad(this, args);
        }