public AdvancedReaderSettings()
 {
     InitializeComponent();
     properties = Utilities.GetProperties();
     InputModeEditor.SetInputMode(txtRFOff, InputMode.Numeric);
     InputModeEditor.SetInputMode(txtRFOn, InputMode.Numeric);
 }
示例#2
0
        public Register()
        {
            InitializeComponent();
            this._splashPicture.Image = Properties.Resources.SidelineTitle_Inverted;
            _ownerTextBox.Text        = Utils.GetOwnerName();
            this.DialogResult         = DialogResult.Cancel;

            InputModeEditor.SetInputMode(_passTextBox, InputMode.Numeric);
        }
示例#3
0
        private void ReaderSettings_Load(object sender, EventArgs e)
        {
            InputModeEditor.SetInputMode(txtAddress, InputMode.Numeric);
            try
            {
                string tagPopulation = properties["tagpopulation"];
                switch (tagPopulation)
                {
                case "small":
                    rbSmallTags.Checked = true;
                    break;

                case "medium":
                    rbMediumTags.Checked = true;
                    break;

                case "large":
                    rbLargeTags.Checked = true;
                    break;

                default: break;
                }
                if (properties["selectionaddress"] == "")
                {
                    txtAddress.Text = "0";
                }
                else
                {
                    txtAddress.Text = properties["selectionaddress"];
                }
                if (properties["readpower"] != "")
                {
                    cbPowerInDBM.SelectedItem = (Convert.ToInt32(properties["readpower"]) / 100).ToString();
                }
                txtEpc.Text = properties["selectionmask"];
                cbTagSelection.SelectedItem = properties["tagselection"];
                if (properties["ismaskselected"] == "yes")
                {
                    chkMask.Checked = true;
                }
                else
                {
                    chkMask.Checked = false;
                }
                isSettingsChanged = false;
            }
            catch (Exception ex)
            {
                logger.Error("In ReaderSettings_Load: " + ex.ToString());
                MessageBox.Show(ex.ToString());
            }
        }
示例#4
0
        void passwordTextBox_GotFocus(object sender, EventArgs e)
        {
            SelectedTextBox = (FluidTextBox)sender;

            if (SelectedTextBox == txtPassword)
            {
                //Disable T9?
                InputModeEditor.SetInputMode(Form1.Instance, InputMode.AlphaABC);
            }
            else
            {
                InputModeEditor.SetInputMode(Form1.Instance, InputMode.Default);
            }
        }
示例#5
0
        private void ReadParameters_Load(object sender, EventArgs e)
        {
            InputModeEditor.SetInputMode(txtScanDuration, InputMode.Numeric);
            properties                   = Utilities.GetProperties();
            txtScanDuration.Text         = properties["scanduration"];
            txtScanDuration.TextChanged += cbValidateTxtScanDuration;
            ValidateTxtScanDuration();
            cbAudibleAlerts.SelectedText = properties["audiblealert"];
            cbSeparator.SelectedText     = properties["metadataseparator"];
            string[] metadataArray = properties["metadatatodisplay"].Split(',');
            chkTimeStamp.Checked = false;
            chkRSSI.Checked      = false;
            chkPosition.Checked  = false;
            foreach (string metadata in metadataArray)
            {
                switch (metadata)
                {
                case "timestamp":
                    chkTimeStamp.Checked = true;
                    break;

                case "rssi":
                    chkRSSI.Checked = true;
                    break;

                case "position":
                    chkPosition.Checked = true;
                    break;

                default: break;
                }
            }
            txtDecodeFile.Text    = properties["decodewavefile"];
            txtStartScanFile.Text = properties["startscanwavefile"];
            txtEndScanFile.Text   = properties["endscanwavefile"];
            openFile.Filter       = "wave Files (.wav)|*.wav";

            // Ignore any change events fired during initialization
            isSettingsChanged = false;
        }