private void CalcNowRC(object statusInfo)
        {
            try
            {
                RCEnv.CalcRC();

                MainThread.BeginInvokeOnMainThread(RefreshInfo);
            }
            catch (Exception ex)
            {
#if DEBUG
                DependencyService.Get <IToast>().Show(ex.ToString());
#endif
            }
        }
        internal override void ApplyValue()
        {
            base.ApplyValue();

            if (int.TryParse(SfUpDown.Text, out int inputValue))
            {
                RCEnv.LastInputTime = DateTime.Now.ToString(AppEnv.DTCulture);
                RCEnv.Currency      = inputValue; //Convert.ToInt32((double)SfUpDown.Value);
                RCEnv.AddCount      = 0;

                RCEnv.CalcEndTime();
                RCEnv.CalcRC();
                RCEnv.SaveValue();

                notiManager.UpdateNotisTime();
                notiManager.UpdateScheduledNoti <RealmCurrencyNoti>();
            }
            else
            {
                DependencyService.Get <IToast>().Show(AppResources.ValueEdit_ValueError_Message);
            }
        }
Esempio n. 3
0
 public void UpdateInfo()
 {
     RCEnv.CalcRC();
 }