public void LoadNextTreeNode() { if (!this.hasLoaded) { this.Nodes.Clear(); if (isStateNode) { QDLGTreeNode[] nodes = QDLGViewer.BuildDialogNodes(this.dlgFile, this.state); if (nodes != null) { this.Nodes.AddRange(nodes); } } else { QDLGTreeNode node = QDLGViewer.BuildDialogNodes(this.trans); if (node != null) { this.Nodes.Add(node); } } } this.hasLoaded = true; }
public void DisplayNodeInformation(QDLGViewer dlgTV) { if (isStateNode) { dlgTV.InfoStateRef = "[RESFILE: " + dlgFile.GetName() + "] [STRREF: " + state.srStateIndex.ToString() + "] [STATE: " + state.id.ToString() + "]"; dlgTV.InfoState = this.Text; dlgTV.InfoTrans = GetString(dlgFile.sTrigList, state.sTrigIndex); dlgTV.InfoAction = null; dlgTV.InfoJournal = null; } else { dlgTV.InfoStateRef = "[RESFILE: " + dlgFile.GetName() + "] [STRREF: " + trans.srTransIndex.ToString() + "] [TRIGGER: " + trans.id.ToString() + "]"; dlgTV.InfoState = this.Text; dlgTV.InfoTrans = GetString(dlgFile.tTrigList, trans.tTrigIndex); dlgTV.InfoAction = GetString(dlgFile.actionList, trans.actionIndex); dlgTV.InfoJournal = ApplicationRuntime.TalkIndex. TrefCollection.GetStringRef(trans.srJournIndex); } }