/// <inheritdoc/> public bool InvokeCommand <TCommand>(TCommand command) { if (command != null && !_context.IsDismissed) { if (CommandUtilities.TryUnpack(command, out Commands cmd)) { if (cmd == Commands.Ok) { _context.Dismiss(MessageBoxResult.Ok); } else { _context.Dismiss(MessageBoxResult.Cancel); } return(true); } } return(false); }
private void OnTimer(float time) { _context.Dismiss(); }
/// <summary> /// Dismissses this controller. /// </summary> /// <seealso cref="IsDismissed"/> protected void Dismiss() { _context.Dismiss(); }