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); } }
public NodeViewSource(List <TreeNode> node, NodeViewController nodeViewController, FavoriteNodeView nodeView) { _node = node; _nodeViewController = nodeViewController; _nodeView = nodeView; }
public NodeViewSource(List<TreeNode> node, NodeViewController nodeViewController, FavoriteNodeView nodeView) { _node = node; _nodeViewController = nodeViewController; _nodeView = nodeView; }