Esempio n. 1
0
 private void PageOnVisibilityChanged(IVisibleItem item, VisibilityChangeEventArgs args)
 {
     if (VisibilityChanged != null)
     {
         VisibilityChanged(item, args);
     }
 }
Esempio n. 2
0
 private void OwnerOnVisibilityChanged(IVisibleItem item, VisibilityChangeEventArgs args)
 {
     if (args.EventType != VisibilityChangeEventType.WillShow)
     {
         return;
     }
     SerialInputJoin.StringValue = _text;
 }
Esempio n. 3
0
 private void ParentVisibilityChanged(IVisibleItem item, VisibilityChangeEventArgs args)
 {
     if (args.EventType == VisibilityChangeEventType.DidHide)
     {
         _parentViewHiding = true;
         Hide();
     }
 }
Esempio n. 4
0
        protected virtual void OnVisibilityChanged(IVisibleItem item, VisibilityChangeEventArgs args)
        {
            var handler = VisibilityChanged;

            if (handler != null)
            {
                handler(item, args);
            }
        }
Esempio n. 5
0
        private void OnVisibilityChanged(IVisibleItem item, VisibilityChangeEventArgs args)
        {
            var handler = VisibilityChanged;

            if (handler != null)
            {
                handler(item, args);
            }
        }
Esempio n. 6
0
        protected virtual void ViewOnVisibilityChanged(IVisibleItem item, VisibilityChangeEventArgs args)
        {
#if DEBUG
            Debug.WriteInfo(GetType().Name, args.EventType.ToString());
#endif
            switch (args.EventType)
            {
            case VisibilityChangeEventType.WillShow:
                _secondsCount         = 0;
                _timer                = new CTimer(CountStep, null, 1000, 1000);
                _buttons.ButtonEvent += ButtonsOnButtonEvent;
                break;

            case VisibilityChangeEventType.WillHide:
                _buttons.ButtonEvent -= ButtonsOnButtonEvent;
                _timer.Stop();
                _timer.Dispose();
                break;
            }
        }
Esempio n. 7
0
        protected void OnVisibilityChanged(IVisibleItem item, VisibilityChangeEventArgs args)
        {
            var handler = VisibilityChanged;

            CloudLog.Debug("{0} ({1}) : {2}", GetType().Name, VisibleJoin.Number, args.EventType);
            switch (args.EventType)
            {
            case VisibilityChangeEventType.WillShow:
                try
                {
                    WillShow();
                }
                catch (Exception e)
                {
                    CloudLog.Exception(e);
                }
                break;

            case VisibilityChangeEventType.DidShow:
                _uiController.Activity += UIControllerOnActivity;
                try
                {
                    DidShow();
                }
                catch (Exception e)
                {
                    CloudLog.Exception(e);
                }
                break;

            case VisibilityChangeEventType.WillHide:
                _uiController.Activity -= UIControllerOnActivity;
                try
                {
                    WillHide();
                }
                catch (Exception e)
                {
                    CloudLog.Exception(e);
                }
                break;

            case VisibilityChangeEventType.DidHide:
                try
                {
                    DidHide();
                }
                catch (Exception e)
                {
                    CloudLog.Exception(e);
                }
                if (_timeOut != null && !_timeOut.Disposed)
                {
                    _timeOut.Dispose();
                }
                break;
            }
            if (handler != null)
            {
                handler(item, args);
            }
        }