public void Restore(TreeMapPane pane) { if (!m_SelectedItem.Equals(default(Treemap.ObjectMetric))) { if (pane.m_TreeMap.HasMetric(m_SelectedItem)) { pane.OpenMetricData(m_SelectedItem, true); } else { pane.ShowAllObjects(m_SelectedItem, true); } } else if (m_GroupName != null) { Treemap.Group group = pane.m_TreeMap.FindGroup(m_GroupName); if (group != null) { pane.OnClickGroup(group); } else { pane.ShowAllObjects(default(Treemap.ObjectMetric), true); } } pane.m_EventListener.OnRepaint(); }
void OpenGroupData(Treemap.Group group) { var lr = new Database.LinkRequestTable(); lr.LinkToOpen = new Database.TableLink(); lr.LinkToOpen.TableName = ObjectAllTable.TableName; lr.SourceTable = null; lr.SourceColumn = null; lr.SourceRow = -1; OpenLinkRequest(lr, false, group.Name, false); }
public void OnClickGroup(Treemap.Group a) { m_TreeMap.SelectGroup(a); OpenGroupData(a); }