Exemplo n.º 1
0
        protected virtual void OnChangeNodeEvent(DialogNode <TContent> nextNode)
        {
            EventHandler <DialogNode <TContent> > handler = ChangeNodeEvent;

            handler?.Invoke(this, nextNode);
        }
Exemplo n.º 2
0
 private void OptionSelectEvent(object sender, DialogNode <TContent> nextNode)
 {
     OnChangeNodeEvent(nextNode);
 }
Exemplo n.º 3
0
 public static Dialog <TContent> CreateNew(DialogNode <TContent> startNode)
 {
     return(new Dialog <TContent>(startNode));
 }
Exemplo n.º 4
0
 private void ChangeNodeEvent(object sender, DialogNode <TContent> nextNode)
 {
     this.CurrentNode = nextNode;
     this.SubscribeToCurrentNodeEvent();
 }
Exemplo n.º 5
0
 private Dialog(DialogNode <TContent> startNode)
 {
     this.CurrentNode = startNode;
     this.SubscribeToCurrentNodeEvent();
 }