void task_Completed(object sender, System.ComponentModel.RunWorkerCompletedEventArgs e)
 {
     IoC.Get<ICircularLoadViewModel>().StopLoading();
     StockIn stockIn = (StockIn)e.Result;
     StockInChoosingArg eventArgs = new StockInChoosingArg();
     eventArgs.SelectedStockIn = stockIn;
     if (ConfirmEvent != null) ConfirmEvent(this, eventArgs);
 }
 void StockInConfirmEvent(object sender, StockInChoosingArg e)
 {
     StartWaitingScreen(0);
     CoralPOS.Models.StockIn selectedStockIn = e.SelectedStockIn;
     BackgroundTask backgroundTask = new BackgroundTask(() => PopulateStockOutList(selectedStockIn));
     backgroundTask.Completed += backgroundTask_Completed;
     backgroundTask.Start(selectedStockIn);
 }
 void StockInConfirmEvent(object sender, StockInChoosingArg e)
 {
     CoralPOS.Models.StockIn selectedStockIn = e.SelectedStockIn;
     BackgroundTask backgroundTask = new BackgroundTask(() => PopulateStockOutList(selectedStockIn));
     backgroundTask.Completed += new System.ComponentModel.RunWorkerCompletedEventHandler(backgroundTask_Completed);
     StartWaitingScreen(0);
     backgroundTask.Start(selectedStockIn);
 }