public void Execute(DialogCommandDispatcher dispatcher) { switch (Action) { case DialogAction.Cancel: case DialogAction.OK: dispatcher.Dialog.Close(); break; } }
public DialogCommandCollection(DialogCommandDispatcher dispatcher) { this.dispatcher = dispatcher; items = new List <IDialogCommand>(); }