Esempio n. 1
0
 internal void OnNodesChanged(TreeModelEventArgs args)
 {
     if (NodesChanged != null)
     {
         NodesChanged(this, args);
     }
 }
Esempio n. 2
0
 internal void OnNodeRemoved(Node parent, int index, Node node)
 {
     if (NodesRemoved != null)
     {
         TreeModelEventArgs args = new TreeModelEventArgs(GetPath(parent), new int[] { index }, new object[] { node });
         NodesRemoved(this, args);
     }
 }
Esempio n. 3
0
        protected void NotifyModel()
        {
            TreeModel model = FindModel();

            if (model != null && Parent != null)
            {
                TreePath path = model.GetPath(Parent);
                if (path != null)
                {
                    TreeModelEventArgs args = new TreeModelEventArgs(path, new int[] { Index }, new object[] { this });
                    model.OnNodesChanged(args);
                }
            }
        }