public RealmCurrencyTimerPage()
        {
            InitializeComponent();

            BindingContext = this;

            RCEnv.LoadValues();

            if (Device.RuntimePlatform is not Device.UWP)
            {
                _buttonPressTimer = new(500)
                {
                    AutoReset = false
                };
                _buttonPressTimer.Elapsed += delegate
                {
                    _isRunReset = true;

                    if (Preferences.Get(SettingConstants.QUICKCALC_VIBRATION, true))
                    {
                        Vibration.Vibrate(100);
                    }

                    ResetRC();
                };
            }

            if (RCEnv.IsSyncEnabled)
            {
                _ = SyncData();
            }
        }
Пример #2
0
        public RealmCurrencyNoti(int percentage)
        {
            Percentage = percentage;
            NotiId     = RealmCurrencyNotiManager.ID_PREINDEX + Percentage;

            try
            {
                UpdateTime();
            }
            catch
            {
                RCEnv.LoadValues();
                UpdateTime();
            }
        }
Пример #3
0
 public RealmCurrencyHomeItem()
 {
     RCEnv.LoadValues();
 }