Ejemplo n.º 1
0
 public PurchasedTogetherVM(PurchasedTogetherUserControlV view)
 {
     this.View                  = view;
     SourceList                 = new PurchaseTogetherM().GetProductList();
     worker.DoWork             += worker_DoWork;
     worker.RunWorkerCompleted += worker_RunWorkerCompleted;
 }
Ejemplo n.º 2
0
 private void worker_DoWork(object sender, DoWorkEventArgs e)
 {
     VisibilityProgressBar  = Visibility.Visible;
     VisibilityListProducts = Visibility.Collapsed;
     if (SelectedProduct != null)
     {
         ProbabilityDict = new PurchaseTogetherM().getProbabilityDidt(SelectedProduct.num);
     }
 }