Inheritance: System.EventArgs
Ejemplo n.º 1
0
 private void NodeCornerControlOnNodeSelected(object sender, NodeSelectedEventArgs e)
 {
     if (CollapseControl.State == CollapseState.Collapsed ||
         CollapseControl.State == CollapseState.SemiCollapsed)
     {
         CollapseControl.ExpandNodes(new ChildrenControlCollection(this, false, true));
     }
     SelectNodeDetail(e.Type, e.Source);
 }
Ejemplo n.º 2
0
 private void OnNodeSelected(object sender, NodeSelectedEventArgs e)
 {
     switch (e.Type)
     {
         case NodeSelectedEventArgs.NodeSelectedType.All:
             RelatedContentPanelUtil.Instance.ResetAndHidePanels();
             ShowDescription(e.SelectedNode);
             ShowRelatedMaps(e.SelectedNode);
             ShowVideoControl(e.SelectedNode);
             break;
         case NodeSelectedEventArgs.NodeSelectedType.RelatedContent:
             ShowDescription(e.SelectedNode);
             break;
         case NodeSelectedEventArgs.NodeSelectedType.RelatedMap:
             if (e.Source == NodeSelectedEventArgs.ClickSource.Node) 
             {
                 if (e.SelectedNode.NodeClickOptions.ShowRelatedMaps)
                 {
                     ShowRelatedMaps(e.SelectedNode);
                 }
                 else 
                 {
                     RelatedContentPanelUtil.Instance.ClearRelatedMaps(); //hide the related maps if already showing
                 }
             }
             else if (e.Source == NodeSelectedEventArgs.ClickSource.CornerButton)
             {
                 ShowRelatedMaps(e.SelectedNode);
             }
             break;
         case NodeSelectedEventArgs.NodeSelectedType.Video:
             ShowVideoControl(e.SelectedNode);
             if (e.Source == NodeSelectedEventArgs.ClickSource.CornerButton && e.SelectedNode.NodeActionOptions.ShowRelatedContentWithVideo)
             {
                 ShowDescription(e.SelectedNode);
             }
             break;
     }
 }
Ejemplo n.º 3
0
 private void NodeCornerControlOnNodeSelected(object sender, NodeSelectedEventArgs e)
 {
     if (CollapseControl.State == CollapseState.Collapsed ||
         CollapseControl.State == CollapseState.SemiCollapsed)
     {
         CollapseControl.ExpandNodes(new ChildrenControlCollection(this, false, true));
     }
     SelectNodeDetail(e.Type, e.Source);
 }
Ejemplo n.º 4
0
 public void SelectNodeDetail(NodeSelectedEventArgs.NodeSelectedType type, NodeSelectedEventArgs.ClickSource source)
 {
     if (NodeSelected != null)
     {
         NodeSelected(this, new NodeSelectedEventArgs { SelectedNode = ViewModelNode, Type = type, Source = source });
     }
 }