Ejemplo n.º 1
0
        public WatchSpinner(EvasObject parent, CircleSurface surface) : base(parent, surface)
        {
            Style             = ThemeConstants.CircleSpinner.Styles.Circle;
            _wheelAppeared    = new SmartEvent(this, ThemeConstants.CircleSpinner.Signals.ShowList);
            _wheelDisappeared = new SmartEvent(this, ThemeConstants.CircleSpinner.Signals.HideList);

            _wheelAppeared.On    += (s, e) => WheelAppeared?.Invoke(this, EventArgs.Empty);
            _wheelDisappeared.On += (s, e) => WheelDisappeared?.Invoke(this, EventArgs.Empty);
        }
        public WatchSpinner(EvasObject parent, CircleSurface surface) : base(parent, surface)
        {
            Style = "circle";

            if (TizenDotnetUtil.TizenAPIVersion == 4)
            {
                _wheelAppeared    = new ElmSharp.SmartEvent(this, "genlist,show");
                _wheelDisappeared = new ElmSharp.SmartEvent(this, "genlist,hide");
            }
            else
            {
                _wheelAppeared    = new ElmSharp.SmartEvent(this, "list,show");
                _wheelDisappeared = new ElmSharp.SmartEvent(this, "list,hide");
            }

            _wheelAppeared.On    += (s, e) => WheelAppeared?.Invoke(this, EventArgs.Empty);
            _wheelDisappeared.On += (s, e) => WheelDisappeared?.Invoke(this, EventArgs.Empty);
        }