Esempio n. 1
0
 void _indicator_Elapsed(object sender, EventArgs e)
 {
     _indicator.Stop();
     if (_showIndicator)
     {
         RootForm.Invoke(new Action(() => { Cursor.Current = Cursors.Default; }));
     }
 }
Esempio n. 2
0
 protected override void OnShowLoadIndicator(string title)
 {
     RootForm.Invoke(new Action(() =>
     {
         Cursor.Current = Cursors.WaitCursor;
         _showIndicator = false;
         _indicator.Start();
     }));
 }
Esempio n. 3
0
 protected override void ShouldNavigate(Link link, Pane pane, Action handler)
 {
     RootForm.Invoke(new Action(() =>
     {
         if (PaneManager.Instance.ShouldNavigate(link, pane, NavigationType.Forward))
         {
             handler.Invoke();
         }
     }));
 }
Esempio n. 4
0
        protected override void OnHideLoadIndicator()
        {
            _showIndicator = true;
            if (!_indicator.IsEnabled)
            {
                RootForm.Invoke(new Action(() => { Cursor.Current = Cursors.Default; }));
            }

            var elapse = DateTime.UtcNow.Ticks - _lastNavTime;

            Device.Log.Metric(string.Format("Rendering the layer cost {0}ms", new TimeSpan(elapse).TotalMilliseconds));
        }