Esempio n. 1
0
 internal virtual void ResetItem()
 {
     if (ListView.SelectedItem is not null)
     {
         (ListView.SelectedItem as Noti).UpdateTime();
         NotiManager.UpdateNotisTime();
         Utils.RefreshCollectionView(ListView, Notis);
     }
 }
Esempio n. 2
0
        private void UpdateNotis()
        {
            if (Preferences.Get(SettingConstants.NOTI_ENABLED, false))
            {
                NotiManager notiManager = type switch
                {
                    RealmEnv.RealmType.Currency => new RealmCurrencyNotiManager(),
                    RealmEnv.RealmType.Friendship => new RealmFriendshipNotiManager(),
                    _ => null
                };

                notiManager?.UpdateNotisTime();
            }
        }