Пример #1
0
        private static void EditReputationRewards(EditReputationRewardsMessage message)
        {
            Window sender = message.Target as Window;

            EditReputationRewardsViewModel viewModel = new EditReputationRewardsViewModel(message.ReputationRewards);
            EditReputationRewardsWindow dlg = new EditReputationRewardsWindow(viewModel) { Owner = sender };
            if (dlg.ShowDialog() != true)
            {
                return;
            }

            message.Accepted = true;
        }
 public EditReputationRewardsWindow(EditReputationRewardsViewModel viewModel)
 {
     this.ViewModel = viewModel.ValidateNotNull(nameof(viewModel));
     this.InitializeComponent();
 }