private void RemoveBonus(object obj)
 {
     if (obj is BonusModel)
     {
         BonusesList.Remove(obj as BonusModel);
     }
 }
        private void AddBonus(BonusModel bonus)
        {
            if (bonus == null)
            {
                return;
            }

            BonusesList.Add(bonus);
            PopupModel.ClosePopup();
        }
        private void SetSettingsModelInternal(ISettingsBase model)
        {
            base.SetSettingsModel(model);

            BonusesList.CollectionChanged  -= BonusesList_CollectionChanged;
            RakeBackList.CollectionChanged -= RakeBackList_CollectionChanged;

            BonusesList.Clear();
            RakeBackList.Clear();

            if (SettingsModel?.BonusesList != null)
            {
                BonusesList.AddRange(SettingsModel.BonusesList);
            }

            if (SettingsModel?.RakeBackList != null)
            {
                RakeBackList.AddRange(SettingsModel.RakeBackList);
            }

            BonusesList.CollectionChanged  += BonusesList_CollectionChanged;
            RakeBackList.CollectionChanged += RakeBackList_CollectionChanged;
        }