Exemplo n.º 1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            // Event
            var workerEvent = new EventWebWorker();

            workerEvent.HtmlStringReceived += async(object sender, HtmlReceivedEventArgs e) =>
            {
                WriteLine($"event html:{ e.Html }");

                await Task.Delay(2000);

                await Task.Run(() => { MoveToNextView(); });
            };

            workerEvent.DownloadHtmlStringWithEvent("https://www.stackoverflow.com");
        }
Exemplo n.º 2
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            // Event
            var workerEvent = new EventWebWorker();

            workerEvent.HtmlStringReceived += (object sender, HtmlReceivedEventArgs e) => {
                WriteLine($"event html:{ e.Html }");
            };

            workerEvent.DownloadHtmlStringWithEvent(url);

            // Perform any additional setup after loading the view, typically from a nib.
            Button.AccessibilityIdentifier = "myButton";
            Button.TouchUpInside          += delegate
            {
                this.PerformSegue("moveToMasterViewSegue", this);
            };
        }