public EditTradeCommand(EditTradeWindowViewModel editTradeWindowVM, ITransactionService transactionService, TransactionsBO transactions) { _editTradeWindowVM = editTradeWindowVM; _transactionService = transactionService; _transaction = transactions; }
public void CreateEditTradeWindow(TransactionsBO securityTrade) { Window view = new EditTradeWindow(); ViewModelWindowBase viewModel = new EditTradeWindowViewModel(_transactionService, _staticReferences, securityTrade); view = ApplyWindowAttributes(view, viewModel); view.ShowDialog(); }