public void CheckedAll(bool _CheckAll, Enum_Classe _OwnerClasse) { foreach (MyCheckBox CheckBox in this.ListMyCheckBox) { if (CheckBox.GetEnumType != _OwnerClasse) { CheckBox.ChangeMeCheck(_CheckAll); } } if (_CheckAll) { this.ChampionOnCurrentFilter = new ArrayList(); foreach (SlotChampion SlotChamp in this.ListSlotChampion) { SlotChamp.Visibility = Visibility.Visible; this.ChampionOnCurrentFilter.Add(SlotChamp); } this.Actual_Listed.Text = $"{this.ChampionOnCurrentFilter.Count.ToString()}/{this.ListSlotChampion.Count.ToString()}"; this.ApplyFilter(false); } else { this.CheckedModified(); } }
public OrigineClasse(Enum_Classe _ClasseType, bool _IsClasse, string _Description, Dictionary <int, string> _Bonus) { this.ClasseType = _ClasseType; this.Name = this.ClasseType.ToString(); this.Icon = new BitmapImage(new Uri($"/Antize TFT;component/Ressources/Classes/{this.ClasseType}.png", UriKind.Relative)); this.Description = _Description; this.Bonus = _Bonus; this.IsClasse = _IsClasse; }
public Champion(int _Tier, string _Name, string _Health, string _Damage, Enum_Classe _Classe_TypeOne, Enum_Classe _Classe_TypeTwo, Enum_Classe _Classe_TypeThree, string _IconPath) { this.ChampionIcon = new BitmapImage(new Uri(_IconPath, UriKind.RelativeOrAbsolute)); this.Name = _Name; this.Health = _Health; this.Damage = _Damage; this.Classe_TypeOne = _Classe_TypeOne; this.Classe_TypeTwo = _Classe_TypeTwo; this.Classe_TypeThree = _Classe_TypeThree; this.Tier = _Tier; this.MyItem = new Items[3] { null, null, null }; this.GetDebugPath = _IconPath; }