public IncomeForm() { InitializeComponent(); _mode = CarScanMode.BoxScan; scannedDelegate = new Scanned(OnScanned); }
public IncomeForm(System.Collections.Generic.Dictionary<string,//car System.Collections.Generic.Dictionary<string, //TORG12 System.Collections.Generic.Dictionary<string,//Box navcode Boxes>>> ttnStruct, string barCode) { InitializeComponent(); scannedDelegate = new Scanned(OnScanned); TtnStruct = ttnStruct; _currentTTNBarcode = barCode; _mode = CarScanMode.CarsScan; foreach (string incomeDoc in TtnStruct[_currentTTNBarcode].Keys) {//цикл по всем накладным foreach (string navCodeBox in TtnStruct[_currentTTNBarcode][incomeDoc].Keys) {//цикл по всем коробам этой накладной totalQtyCar += 1; } } }