void StockInConfirmEvent(object sender, DepartmentStockInChoosingArg e)
 {
     CoralPOS.Models.DepartmentStockIn selectedStockIn = e.SelectedStockIn;
     BackgroundTask backgroundTask = new BackgroundTask(() => PopulateStockOutList(selectedStockIn));
     backgroundTask.Completed += new System.ComponentModel.RunWorkerCompletedEventHandler(backgroundTask_Completed);
     StartWaitingScreen(0);
     backgroundTask.Start(selectedStockIn);
 }
Ejemplo n.º 2
0
        public void Choose()
        {
            DepartmentStockIn stockIn = DepartmentStockInLogic.Fetch(SelectedStockIn);
            DepartmentStockInLogic.FetchDeptStock(stockIn);

            DepartmentStockInChoosingArg eventArgs = new DepartmentStockInChoosingArg();
            eventArgs.SelectedStockIn = stockIn;
            if (ConfirmEvent != null) ConfirmEvent(this, eventArgs);
            ShellViewModel.Current.HideDialog(this);
        }