コード例 #1
0
        public void ShowFavorite()
        {
            try {
                if (_nodes.Last().GetType().Equals(typeof(FavoriteNodeView)))
                {
                    return;
                }

                var node = FavoriteNodeView.Create(new CGRect(View.Frame.Width, 0, width, View.Frame.Height), this, _balkKleur);
                node.Node = new TreeNode()
                {
                    ParentId = _nodes.Last().Node.Id
                };
                node.Layer.ZPosition = 10;

                if (_nodes.Count > 1)
                {
                    _nodes.RemoveRange(1, _nodes.Count - 1);
                }

                _nodes.Add(node);
                Add(node);
                AnimateViews();
            }  catch (Exception ex) {
                Insights.Report(ex);
            }
        }
コード例 #2
0
 public NodeViewSource(List <TreeNode> node, NodeViewController nodeViewController, FavoriteNodeView nodeView)
 {
     _node = node;
     _nodeViewController = nodeViewController;
     _nodeView           = nodeView;
 }
コード例 #3
0
 public NodeViewSource(List<TreeNode> node, NodeViewController nodeViewController, FavoriteNodeView nodeView) {
     _node = node;
     _nodeViewController = nodeViewController;
     _nodeView = nodeView;
 }