コード例 #1
0
        public void CreateNewTradeWindow(Fund fund)
        {
            Window view = new AddTradeWindow();
            ViewModelWindowBase viewModel = new AddTradeWindowViewModel(_transactionService, _staticReferences, fund);

            view = ApplyWindowAttributes(view, viewModel);
            view.ShowDialog();
        }
コード例 #2
0
 public AddTradeCommand(AddTradeWindowViewModel addTradeWindowVM,
                        ITransactionService transactionService)
 {
     _addTradeWindowVM   = addTradeWindowVM;
     _transactionService = transactionService;
 }