public QueueTaskEU(Intermec.DataCollection.BarcodeReader _bcr, string _RZDN) { InitializeComponent(); FormActive = true; set = new Settings("DataBrCode.xml"); // ScanOperation = _ScanOperation; listEU = new List <string>(); bcr = _bcr; this.RZDN = _RZDN; InitTable(); InitScaner(); //Тут правим лейбл string StatusBD = "БД: " + SqLiteDB.UpdateDateTime + ". Операции: " + BufferToBD.CountBuffer; labelBD.BeginInvoke(new Action(() => { labelBD.Text = StatusBD; })); this.KeyPreview = true; // labelMX.Text += " " + this.RZDN; ScanWeigth = SqlLiteQuery.GetWEIGHTByRZDN(_RZDN); details = SqlLiteQuery.GetDetalisbyRZDN(_RZDN); MarkaRZDN = SqlLiteQuery.GetMarkabyRZDN(_RZDN); labelDetal.Text = details; MarkaRZDNList = SqlLiteQuery.GetMarkabyRZDNList(_RZDN); }
public QueueTaskEU(Intermec.DataCollection.BarcodeReader _bcr, string _RZDN) { InitializeComponent(); FormActive = true; set = new Settings("DataBrCode.xml"); // ScanOperation = _ScanOperation; listEU = new List <WebReference.Relmuch>(); bcr = _bcr; this.RZDN = _RZDN; InitTable(); InitScaner(); //Тут правим лейбл string StatusBD = "БД: " + SqLiteDB.UpdateDateTime + ". Операции: " + BufferToBD.CountBuffer; labelBD.BeginInvoke(new Action(() => { labelBD.Text = StatusBD; })); this.KeyPreview = true; // labelMX.Text += " " + this.RZDN; ScanWeigth = SqlLiteQuery.GetWEIGHTByRZDN(_RZDN); labelMX.Text = "Осталось: " + Math.Round(ScanWeigth, 2).ToString() + " т."; if (ScanWeigth <= 0) { labelMX.ForeColor = Color.White; } else { labelMX.ForeColor = Color.Tomato; } details = SqlLiteQuery.GetDetalisbyRZDN(_RZDN); MarkaRZDN = SqlLiteQuery.GetMarkabyRZDN(_RZDN); labelDetal.Text = details; MarkaRZDNList = SqlLiteQuery.GetMarkabyRZDNList(_RZDN); labelCountScan.BeginInvoke(new Action(() => { labelCountScan.Text = "0"; })); }