コード例 #1
0
 public RankRequirementViewModel(RankListRequirementViewModel viewModel, RankRequirementModel requirement)
     : this(viewModel)
 {
     this.SelectedRankSystem = requirement.RankSystem;
     this.SelectedRank       = requirement.RequiredRank;
     this.SelectedMatchType  = requirement.MatchType;
 }
コード例 #2
0
        public RankRequirementViewModel(RankListRequirementViewModel viewModel)
        {
            this.viewModel = viewModel;

            this.DeleteCommand = this.CreateCommand(() =>
            {
                this.viewModel.Delete(this);
            });
        }
コード例 #3
0
        public RankRequirementViewModel(RankListRequirementViewModel viewModel)
        {
            this.viewModel = viewModel;

            this.DeleteCommand = this.CreateCommand((parameter) =>
            {
                this.viewModel.Delete(this);
                return(Task.FromResult(0));
            });
        }