Exemplo n.º 1
0
 public TransferCashCommand(
     AddCashTradeWindowViewModel addCashTradeWindowVM,
     ITransactionService transactionService)
 {
     _addCashTradeWindowVM = addCashTradeWindowVM;
     _transactionService   = transactionService;
 }
Exemplo n.º 2
0
        public void CreateNewCashTradeWindow(Fund fund)
        {
            Window view = new AddCashTradeWindow();
            ViewModelWindowBase viewModel = new AddCashTradeWindowViewModel(_transactionService, _staticReferences, fund);

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