Exemple #1
0
        protected virtual void OnAppOptionChanged(AppOption appOption)
        {
            AppOptionEventHandler oCahnged = AppOptionChanged;

            if (oCahnged != null)
            {
                oCahnged(this);
            }
        }
Exemple #2
0
        private void ChangedOptionAction(AppOption options)
        {
            lblPieceScanType.Font   = new System.Drawing.Font("Tahoma", 10F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold))));
            lblPackageScanType.Font = new System.Drawing.Font("Tahoma", 10F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold))));

            lblPieceScanType.ForeColor   = Color.Gray;
            lblPackageScanType.ForeColor = Color.Gray;
            switch (options.MultypleQtyType)
            {
            case MultipleQty.BY_PACKAGE:
                lblPackageScanType.ForeColor = Color.IndianRed;
                lblPackageScanType.Font      = new System.Drawing.Font("Tahoma", 10F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))));
                break;

            case MultipleQty.BY_PIECE:
                lblPieceScanType.ForeColor = Color.IndianRed;
                lblPieceScanType.Font      = new System.Drawing.Font("Tahoma", 10F, ((System.Drawing.FontStyle)((System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Underline))));
                break;
            }

            lbPackageFlag.ForeColor = (options.FastScan) ? Color.IndianRed : Color.Gray;
        }