Exemple #1
0
        private void CleanUp()
        {
            if (Mask != null)
            {
                _initialized = false;

                GeneratePositionArrays();

                _rawText   = new RawText();
                _selection = _rawToMask[0];

                _editingBefore    = true;
                _editingOnChanged = true;
                _editingAfter     = true;

                Text = HasHint ? null : Mask.Replace(_representation, _maskFill);;

                _editingBefore    = false;
                _editingOnChanged = false;
                _editingAfter     = false;

                _maxRawLength          = _maskToRaw[PreviousValidPosition(Mask.Length - 1)] + 1;
                _lastValidMaskPosition = FindLastValidMaskPosition();
                _initialized           = true;

                base.OnFocusChangeListener = this;
            }
        }
Exemple #2
0
        private void CleanUp()
        {
            if (mask == null)
            {
                return;
            }

            initialized = false;

            generatePositionArrays();

            rawText   = new RawText();
            selection = rawToMask[0];

            editingBefore = editingOnChanged = editingAfter = true;
            this.Text     = HasHint ? string.Empty : mask.Replace(charRepresentation, maskFill);

            editingBefore = editingOnChanged = editingAfter = false;

            maxRawLength          = maskToRaw[previousValidPosition(mask.Length - 1)] + 1;
            lastValidMaskPosition = findLastValidMaskPosition();
            initialized           = true;

            OnFocusChangeListener(this);
        }
        private void CleanUp()
        {
            if (Mask != null)
            {
                _initialized = false;

                GeneratePositionArrays();

                _rawText = new RawText();
                _selection = _rawToMask[0];

                _editingBefore = true;
                _editingOnChanged = true;
                _editingAfter = true;

                Text = HasHint ? null : Mask.Replace(_representation, _maskFill); ;

                _editingBefore = false;
                _editingOnChanged = false;
                _editingAfter = false;

                _maxRawLength = _maskToRaw[PreviousValidPosition(Mask.Length - 1)] + 1;
                _lastValidMaskPosition = FindLastValidMaskPosition();
                _initialized = true;

                base.OnFocusChangeListener = this;
            }
        }