예제 #1
0
 public SearchAssetsTransaction(AssetsTransactionViewModel assetsTransactionViewModel)
 {
     InitializeComponent();
     _assetsTransactionViewModel = assetsTransactionViewModel;
     _viewModel  = (SearchAssetsTransactionViewModel)LayoutRoot.DataContext;
     DataContext = _viewModel;
 }
예제 #2
0
        public AssetsTransaction()
        {
            InitializeComponent();

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