Beispiel #1
0
        private void Update_Header()
        {
            if (this.Value.Certificate == null)
            {
                _header.Text = string.Format("{0} ({1})", this.Value.Name, BoxTreeViewItem.GetTotalSeedCount(this.Value));
            }
            else
            {
                _header.Text = string.Format("{0} ({1}) - {2}", this.Value.Name, BoxTreeViewItem.GetTotalSeedCount(this.Value), this.Value.Certificate.ToString());
            }

            if (this.Parent != null)
            {
                if (this.Parent is BoxTreeViewItem)
                {
                    var parentBoxTreeViewItem = (BoxTreeViewItem)this.Parent;

                    parentBoxTreeViewItem.Update_Header();
                }
            }
        }