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();
            }
        }
Beispiel #2
0
        public RealmCurrencyNoti(int percentage)
        {
            Percentage = percentage;
            NotiId     = RealmCurrencyNotiManager.ID_PREINDEX + Percentage;

            try
            {
                UpdateTime();
            }
            catch
            {
                RCEnv.LoadValues();
                UpdateTime();
            }
        }
 public RealmCurrencyHomeItem()
 {
     RCEnv.LoadValues();
 }