public CurrencyRequirementViewModel(CurrencyListRequirementViewModel viewModel, CurrencyRequirementModel requirement)
     : this(viewModel)
 {
     this.SelectedCurrency        = requirement.Currency;
     this.SelectedRequirementType = requirement.RequirementType;
     this.MinAmount = requirement.MinAmount;
     this.MaxAmount = requirement.MaxAmount;
 }
        public CurrencyRequirementViewModel(CurrencyListRequirementViewModel viewModel)
        {
            this.viewModel = viewModel;
            this.SelectedRequirementType = CurrencyRequirementTypeEnum.RequiredAmount;

            this.DeleteCommand = this.CreateCommand(() =>
            {
                this.viewModel.Delete(this);
            });
        }
        public CurrencyRequirementViewModel(CurrencyListRequirementViewModel viewModel)
        {
            this.viewModel = viewModel;

            this.DeleteCommand = this.CreateCommand((parameter) =>
            {
                this.viewModel.Delete(this);
                return(Task.FromResult(0));
            });
        }
 public CurrencyRequirementViewModel(CurrencyListRequirementViewModel viewModel, CurrencyRequirementModel requirement)
     : this(viewModel)
 {
     this.SelectedCurrency = requirement.Currency;
     this.Amount           = requirement.Amount;
 }