Exemple #1
0
 private void AddSelected(string name, int id)
 {
     SelectedItemTileViewModels.Add(new SelectedItemTileViewModel(this)
     {
         Id   = id,
         Name = name,
     });
     Parent.HasChanged(true);
 }
        private void AddSelected(SettingsItem settingsItem)
        {
            //if (!SelectedItemTileViewModels.Any(item => item.Name == settingsItem.Name))
            SelectedItemTileViewModels.Add(new SelectedItemTileViewModel()
            {
                Name = settingsItem.Name
            });
//            else
//            {
//                MessageBox.Show("Filtrul adaugat exista");
//            }
        }