Exemplo n.º 1
0
 public SearchAssetsTransaction(AssetsTransactionViewModel assetsTransactionViewModel)
 {
     InitializeComponent();
     _assetsTransactionViewModel = assetsTransactionViewModel;
     _viewModel  = (SearchAssetsTransactionViewModel)LayoutRoot.DataContext;
     DataContext = _viewModel;
 }
Exemplo n.º 2
0
        public AssetsTransaction()
        {
            InitializeComponent();

            ViewModel   = LayoutRoot.DataContext as AssetsTransactionViewModel;
            DataContext = ViewModel;
            SwitchFormMode(FormMode.Add);
            ViewModel.SubmitSearchAction += ViewModel_SubmitSearchAction;
        }