public override void SetView(Webb.Reports.ExControls.Views.ExControlView i_View) { this.C_GroupInfoTree.Nodes.Clear(); if (!(i_View is StatControlView)) { return; } StatControlView m_StatView = i_View as StatControlView; foreach (StatInfo info in m_StatView.StatInfos) { TreeNode node = new TreeNode(info.ToString()); node.Tag = info; this.C_GroupInfoTree.Nodes.Add(node); } }
public override void UpdateView(Webb.Reports.ExControls.Views.ExControlView i_View) { if (this.C_GroupInfoTree.Nodes.Count <= 0) { return; } if (!(i_View is StatControlView)) { return; } StatControlView m_StatView = i_View as StatControlView; m_StatView.StatInfos.Clear(); for (int i_Index = 0; i_Index < this.C_GroupInfoTree.Nodes.Count; i_Index++) { TreeNode node = this.C_GroupInfoTree.Nodes[i_Index]; m_StatView.StatInfos.Add(node.Tag as StatInfo); } }