コード例 #1
0
        private void RefreshGroupElement(int tag)
        {
            int    g    = DHelper.GetGroup(tag);
            int    e    = DHelper.GetElement(tag);
            string strG = DHelper.Int2HexString(g);
            string strE = DHelper.Int2HexString(e);

            this._textBoxGroupNum.Text   = strE;
            this._textBoxElementNum.Text = strG;
        }
コード例 #2
0
        private void RefreshGroupElement()
        {
            TagItem item = this._comboxBoxTag.SelectedItem as TagItem;

            this._textBoxGroupNum.ReadOnly       =
                this._textBoxElementNum.ReadOnly = (item != null);

            if (item != null)
            {
                int    tag  = item.Tag;
                int    g    = DHelper.GetGroup(tag);
                int    e    = DHelper.GetElement(tag);
                string strG = DHelper.Int2HexString(g);
                string strE = DHelper.Int2HexString(e);

                _changingText = true;
                this._textBoxGroupNum.Text   = strG;
                this._textBoxElementNum.Text = strE;
                _changingText = false;
            }
        }