Exemple #1
0
 /// <summary>
 /// Highlights the element that it's not filled correctly.
 /// </summary>
 protected virtual void ShowErrorState()
 {
     titleLabel.ForeColor   = errorColor;
     errorPanel.BorderColor = errorColor;
     errorPanel.BackColor   = Color.White;
     errorPanel.Refresh();
 }
        private void btnBarcode_Click(int LoadingStation, RoundedPanel btnBarcode, Label lblAction, RoundedPanel btnMoveRollOut)
        {
            log.Debug("btnBarcode_Click");

            Program.ScanningForLoadingStation = LoadingStation;
            if ((int)btnBarcode.Tag == 0)
            {
                btnBarcode.Visible = false;
                btnBarcode.Refresh();

                Program.ScannedLabelNumber = "";

                lblAction.Text          = "Scan label on roll now";
                btnBarcode.CenteredText = "After Scanning the barcode\r\npush blue button on station to proceed";
                btnBarcode.Tag          = 1;
                StartBlueLight(LoadingStation);

                btnBarcode.Visible     = true;
                btnMoveRollOut.Visible = false;
            }
            //else
            //    btnBarcode2.Tag = 0;

            log.Debug("btnBarcode_Click sent");
        }