void TreeList_NodeChanged(object sender, NodeChangedEventArgs e)
 {
     if (e.ChangeType == NodeChangeTypeEnum.Remove)
     {
         ListNodes.Remove(((MyNode)e.Node.Tag).KeyField);
     }
 }
示例#2
0
        private static void SetHasChildrenForNode(NodeChangedEventArgs e, ObjectExplorerNode objectExplorerModel)
        {
            switch (objectExplorerModel.Type)
            {
            case GlobalStrings.ObjectExplorerTypes.Instance:
                e.Node.HasChildren = true;
                break;

            case GlobalStrings.ObjectExplorerTypes.Database:
                e.Node.HasChildren = true;
                break;

            case GlobalStrings.ObjectExplorerTypes.Folder:
                e.Node.HasChildren = true;
                break;

            case GlobalStrings.ObjectExplorerTypes.Table:
                e.Node.HasChildren = true;
                break;

            default:
                e.Node.HasChildren = false;
                break;
            }
        }
示例#3
0
        /// <summary>
        ///   Event handler to handle the node changed event.
        /// </summary>
        private void OnNodeChangedEvent(object sender, NodeChangedEventArgs eventArgs)
        {
            INode node = eventArgs.Node;

            Text = string.Format("{0} - {1}", Strings.UroCareTitle, node.TitleText);
            node.PlugIn(this);
        }
示例#4
0
 private void OnSourceTreeListNodeChanged(object sender, NodeChangedEventArgs e)
 {
     if (e.ChangeType == NodeChangeTypeEnum.Add || e.ChangeType == NodeChangeTypeEnum.Remove)
     {
         UpdateControlsState();
     }
 }
示例#5
0
        internal static void OnChangeNode(int npcid, int nodeid)
        {
            var fcnpc = Find(npcid);
            var args  = new NodeChangedEventArgs()
            {
                Node = new Node(nodeid)
            };

            fcnpc?.NodeChanged?.Invoke(fcnpc, args);
        }
示例#6
0
 private void TreeListObjExpOnNodeChanged(object sender, NodeChangedEventArgs e)
 {   //TODO - This event is firing even when a node is already added, which may mean that this may not be the best way to flag a node as having children...
     if (e.ChangeType == NodeChangeTypeEnum.Add)
     {
         if (!(e.Node.TreeList.GetRow(e.Node.Id) is ObjectExplorerNode model) || e.Node.HasChildren)
         {
             return;
         }
         SetHasChildrenForNode(e, model);
     }
 }
        private void OnCurrentNodeChanged(object sender, NodeChangedEventArgs e)
        {
            var currentAction = this.viewModel.CurrentWorkflow == null ? null : this.viewModel.CurrentWorkflow.Model.FocusedAction;

            if (currentAction != null)
            {
                SelectItem(new[] { currentAction });
                BrowseNode(currentAction);
            }

            //Ensure GuidanceBrowser tool window is open
            GuidanceBrowserToolWindow.OpenWindow(this);
        }
示例#8
0
        private void VideoNodesControllerOnNodeChanged(object sender, NodeChangedEventArgs e)
        {
            var stateChangeEvent = new Event
            {
                Name      = "CurrentStateChanged",
                EventArgs = new List <EventArg>()
            };

            stateChangeEvent.EventArgs.Add(new EventArg()
            {
                Name = "NodeId", Value = string.Format("{0}", e.Old)
            });
            stateChangeEvent.EventArgs.Add(new EventArg()
            {
                Name = "State", Value = "Idle"
            });
            MainUI.Controller.SendEvent(stateChangeEvent);
        }
示例#9
0
        private void treeList1_NodeChanged(object sender, NodeChangedEventArgs e) {

        }
示例#10
0
 private void _graph_NodeChanged(object sender, NodeChangedEventArgs e)
 {
     this.IsSaved = false;
 }
示例#11
0
 private void CSGraph_NodeChanged(object sender, NodeChangedEventArgs e)
 {
     UpdateCodeFromGraph();
 }
示例#12
0
 /// <summary>
 /// Connecteds the property unconnect event.
 /// </summary>
 /// <param name="sender">The sender.</param>
 /// <param name="e">The <see cref="NodeChangedEventArgs"/> instance containing the event data.</param>
 private void ConnectedPropertyUnconnectEvent(object sender, NodeChangedEventArgs e)
 {
     this.Unconnect();
 }
示例#13
0
 private void NodeChanged(object sender, NodeChangedEventArgs e)
 {
     txtResults.Text = txtResults.Text + "\r\nNodeChanged:  " + e.ToString();
     txtResults.Refresh();
 }