Пример #1
0
 public EditTradeCommand(EditTradeWindowViewModel editTradeWindowVM,
                         ITransactionService transactionService, TransactionsBO transactions)
 {
     _editTradeWindowVM  = editTradeWindowVM;
     _transactionService = transactionService;
     _transaction        = transactions;
 }
Пример #2
0
        public void CreateEditTradeWindow(TransactionsBO securityTrade)
        {
            Window view = new EditTradeWindow();
            ViewModelWindowBase viewModel = new EditTradeWindowViewModel(_transactionService, _staticReferences, securityTrade);

            view = ApplyWindowAttributes(view, viewModel);
            view.ShowDialog();
        }