public override void Refresh() { StringBuilder sb = new StringBuilder(); sb.Append("(").Append(DHelper.Int2HexString((int)(0x0000FFFF & Tag))); sb.Append(",").Append(DHelper.Int2HexString((int)(Tag >> 16))).Append(")"); string strTag = sb.ToString(); if (SubItems.Count < 2) { SubItems.Add(strTag); } else { SubItems[1].Text = strTag; } string strDescription = DHelper.GetTagName(Tag); if (SubItems.Count < 3) { SubItems.Add(strDescription); } else { SubItems[2].Text = strDescription; } base.Refresh(); }
public void LoadSetting(DPath path) { if (path == null) { return; } SelectItem(this._comboxBoxTag, DHelper.GetTagName((uint)path.GetTag())); SelectItem(this._comboxBoxVR, path.VR.ToString()); }