示例#1
0
        public AtrHistoricalBytesAdapterBase(AtrHistoricalCharactersBase historicalCharacters, InterpretedAtrAdapter interpretedAtr)
        {
            this.interpretedAtr = interpretedAtr;
            this.historicalCharactersAdapter = this.CreatePropertyAdapter(
                nameof(this.HistoricalCharacters),
                () => historicalCharacters.HistoricalCharacters.ToHexString(" ")
                );
            this.historicalCharacterTypesAdapter = this.CreatePropertyAdapter(
                nameof(this.HistoricalCharacterTypes),
                () => AtrHistoricalBytesAdapterBase.GetHistoricalCharacterTypes(this.interpretedAtr.HistoricalCharacters)
                );
            this.PropertyChanged += this.AtrHistoricalBytesAdapterBase_PropertyChanged;


            this.setHistoricalCharacterTypeCommand = new DelegateCommand <EnumerationAdapter <HistoricalCharacterTypes> >(this.SetHistoricalCharacterType);
        }
示例#2
0
 public static AtrHistoricalBytesAdapterBase GetObject(AtrHistoricalCharactersBase atrHistoricalCharactersBase, InterpretedAtrAdapter interpretedAtr)
 {
     return(AtrHistoricalBytesAdapterBase.objectCache.GetObject(new ObjectCacheKey <AtrHistoricalCharactersBase, InterpretedAtrAdapter>(atrHistoricalCharactersBase, interpretedAtr)));
 }
        public AtrCompactTlvHistoricalBytesAdapter(AtrCompactTlvHistoricalCharacters historicalCharacters, InterpretedAtrAdapter interpretedAtr)
            : base(historicalCharacters, interpretedAtr)
        {
            this.historicalCharacters = historicalCharacters;

            this.addDataObjectCommand    = new DelegateCommand <CompactTlvTypes>(this.AddDataObject, _ => this.historicalCharacters.DataObjects.Any(item => item.Type == _) == false, null, this.HandleException);
            this.removeDataObjectCommand = new DelegateCommand <CompactTlvTypes>(this.RemoveDataObject, _ => this.historicalCharacters.DataObjects.Any(item => item.Type == _), null, this.HandleException);
        }
 public AtrProprietaryHistoricalBytesAdapter(AtrProprietaryHistoricalCharacters historicalCharacters, InterpretedAtrAdapter interpretedAtr)
     : base(historicalCharacters, interpretedAtr)
 {
     this.historicalCharacters = historicalCharacters;
 }
 public AtrNoHistoricalBytesAdapter(AtrNoHistoricalCharacters atrHistoricalCharactersBase, InterpretedAtrAdapter interpretedAtrAdapter) : base(atrHistoricalCharactersBase, interpretedAtrAdapter)
 {
 }
示例#6
0
 public AtrInvalidHistoricalBytesAdapter(AtrInvalidHistoricalCharacters historicalCharacters, InterpretedAtrAdapter interpretedAtr)
     : base(historicalCharacters, interpretedAtr)
 {
     this.historicalCharacters = historicalCharacters;
 }
 public AtrDirDataReferenceHistoricalBytesAdapter(AtrDirDataReferenceHistoricalCharacters historicalCharacters, InterpretedAtrAdapter interpretedAtr)
     : base(historicalCharacters, interpretedAtr)
 {
     this.historicalCharacters = historicalCharacters;
 }