public MixByteCollectionCharTextBox(IMixByteCollection byteCollection)
        {
            mByteCollection = byteCollection;
            UseEditMode     = true;

            if (mByteCollection == null)
            {
                mByteCollection = new FullWord();
            }

            SuspendLayout();
            CharacterCasing = CharacterCasing.Upper;
            Location        = new Point(40, 16);
            Size            = new Size(48, 21);
            BorderStyle     = BorderStyle.FixedSingle;
            KeyDown        += This_KeyDown;
            KeyPress       += This_KeyPress;
            Leave          += This_Leave;
            TextChanged    += This_TextChanged;
            //      base.MaxLength = mByteCollection.MaxByteCount;
            ResumeLayout(false);

            UpdateLayout();

            mUpdating          = false;
            mEditMode          = false;
            mLastRenderedBytes = null;
            Update();
        }
Esempio n. 2
0
        public DeviceMixByteCollectionEditor(IMixByteCollection mixByteCollection)
        {
            mDeviceMixByteCollection = mixByteCollection;
            if (mDeviceMixByteCollection == null)
            {
                mDeviceMixByteCollection = new MixByteCollection(FullWord.ByteCount);
            }

            mCharTextBox = new MixByteCollectionCharTextBox(mDeviceMixByteCollection);
            mMixByteCollectionIndexLabel = new Label();
            InitializeComponent();
        }
 public MixByteCollectionEditorValueChangedEventArgs(IMixByteCollection oldValue, IMixByteCollection newValue)
 {
     OldValue = oldValue;
     NewValue = newValue;
 }