public GenratePurchaseSalesOrderChildWindow(GeneratePurchaseViewModel viewModel) { InitializeComponent(); DataContext = viewModel; _viewModel = viewModel; }
public GeneratePurchaseChild(GeneratePurchaseViewModel viewModel, bool Collect = false) { InitializeComponent(); DataContext = viewModel; viewModel.GetMaindata(); collect = Collect; }
public PurchaseOrderDetailChild(GeneratePurchaseViewModel viewModel, int i) { InitializeComponent(); DataContext = viewModel; _temp = i; if (i == 1) { DetailGrid2.Visibility = Visibility.Collapsed; viewModel.GetDetailData(); } else { DetailGrid.Visibility = Visibility.Collapsed; viewModel.GetDetail2Data(); } }
public GeneratePurchase() { InitializeComponent(); _viewModel = LayoutRoot.DataContext as GeneratePurchaseViewModel; DataContext = _viewModel; }
public PurchaseOrderBomChild(GeneratePurchaseViewModel viewModel) { InitializeComponent(); DataContext = viewModel; viewModel.GetPurchaseBom(); }