Esempio n. 1
0
        private void ChangeCasing()
        {
            var text     = FindBox.Text;
            var location = FindBox.Location;
            var size     = FindBox.Size;

            Controls.Remove(FindBox);

            if (HexRadio.Checked)
            {
                FindBox = new HexTextBox
                {
                    CharacterCasing = CharacterCasing.Upper,
                    Nullable        = HexRadio.Checked,
                    Text            = text,
                    Size            = size,
                    Location        = location
                };
            }
            else
            {
                FindBox = new TextBox
                {
                    Text     = text,
                    Size     = size,
                    Location = location
                };
            }

            Controls.Add(FindBox);
        }
Esempio n. 2
0
        private void ChangeCasing()
        {
            var text     = FindBox.Text;
            var location = FindBox.Location;
            var size     = FindBox.Size;

            Controls.Remove(FindBox);
            if (HexRadio.Checked)
            {
                FindBox = new HexTextBox {
                    CharacterCasing = CharacterCasing.Upper
                };
                (FindBox as HexTextBox).Nullable = true;
            }
            else
            {
                FindBox = new TextBox {
                    CharacterCasing = CharacterCasing.Normal
                };
            }

            FindBox.Text = text;
            FindBox.Size = size;
            Controls.Add(FindBox);
            FindBox.Location = location;
        }