public ItemWithoutQualities(string name, string code, bool selected)
 {
     Name     = name;
     Code     = code;
     Selected = new BoolPropertyChangedValueWrapper()
     {
         Value = selected
     };
 }
Beispiel #2
0
 public ItemWithQualities(string name, string code, bool lowQuality, bool normalQuality, bool superiorQuality, bool magicQuality, bool rareQuality, bool uniqueQuality, bool setQuality, bool craftedQuality, bool honorificQuality)
 {
     Name       = name;
     Code       = code;
     LowQuality = new BoolPropertyChangedValueWrapper()
     {
         Value = lowQuality
     };
     NormalQuality = new BoolPropertyChangedValueWrapper()
     {
         Value = normalQuality
     };
     SuperiorQuality = new BoolPropertyChangedValueWrapper()
     {
         Value = superiorQuality
     };
     MagicQuality = new BoolPropertyChangedValueWrapper()
     {
         Value = magicQuality
     };
     RareQuality = new BoolPropertyChangedValueWrapper()
     {
         Value = rareQuality
     };
     UniqueQuality = new BoolPropertyChangedValueWrapper()
     {
         Value = uniqueQuality
     };
     SetQuality = new BoolPropertyChangedValueWrapper()
     {
         Value = setQuality
     };
     CraftedQuality = new BoolPropertyChangedValueWrapper()
     {
         Value = craftedQuality
     };
     HonorificQuality = new BoolPropertyChangedValueWrapper()
     {
         Value = honorificQuality
     };
     AllQualities = new BoolNotifyCollection()
     {
         LowQuality,
         NormalQuality,
         SuperiorQuality,
         MagicQuality,
         RareQuality,
         SetQuality,
         UniqueQuality,
         CraftedQuality,
         HonorificQuality
     };
 }