コード例 #1
0
        public TransferEditorViewModel(
                ITransferRepository transferRepository,
                IBankAccountRepository bankAccountRepository,
                IBankAccountAgent bankAccountAgent,
                IEnumerable<IScheduleFrequency> frequencyCalculators,
                Transfer entity
            )
        {
            this.transferRepository = transferRepository;
            this.bankAccountRepository = bankAccountRepository;
            this.bankAccountAgent = bankAccountAgent;
            this.frequencyCalculators = frequencyCalculators;
            this.entity = entity;

            this.Amount.PropertyChanged += (s,e) =>
                {
                    base.Validate();
                };
            base.ValidationHelper.AddInstance(this.Amount);

            this.FrequencyEvery.PropertyChanged += (s, e) =>
            {
                base.Validate();
                NotifyPropertyChanged(() => this.FrequencyEveryLabel);
            };
            base.ValidationHelper.AddInstance(this.FrequencyEvery);

            NewFromBankAccountCommand = base.AddNewCommand(new ActionCommand(this.NewFromBankAccount));
            NewToBankAccountCommand = base.AddNewCommand(new ActionCommand(this.NewToBankAccount));
        }
コード例 #2
0
 public bool Update(Transfer data)
 {
     throw new NotImplementedException();
 }
コード例 #3
0
 public int Add(Transfer data)
 {
     throw new NotImplementedException();
 }
コード例 #4
0
 public TransferItemViewModel(Transfer entity)
 {
     this.entity = entity;
 }
コード例 #5
0
 public void Release(Transfer s)
 {
 }