void TreeList_NodeChanged(object sender, NodeChangedEventArgs e) { if (e.ChangeType == NodeChangeTypeEnum.Remove) { ListNodes.Remove(((MyNode)e.Node.Tag).KeyField); } }
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; } }
/// <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); }
private void OnSourceTreeListNodeChanged(object sender, NodeChangedEventArgs e) { if (e.ChangeType == NodeChangeTypeEnum.Add || e.ChangeType == NodeChangeTypeEnum.Remove) { UpdateControlsState(); } }
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); }
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); }
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); }
private void treeList1_NodeChanged(object sender, NodeChangedEventArgs e) { }
private void _graph_NodeChanged(object sender, NodeChangedEventArgs e) { this.IsSaved = false; }
private void CSGraph_NodeChanged(object sender, NodeChangedEventArgs e) { UpdateCodeFromGraph(); }
/// <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(); }
private void NodeChanged(object sender, NodeChangedEventArgs e) { txtResults.Text = txtResults.Text + "\r\nNodeChanged: " + e.ToString(); txtResults.Refresh(); }