/// <summary> /// Opens the specified modal dialog box. /// </summary> /// <param name="window">The window in which to open the modal dialog box.</param> /// <param name="modal">The modal dialog box to open.</param> /// <param name="duration">The amount of time over which to transition the modal dialog /// box's state, or <see langword="null"/> to use the default transition time.</param> public static void ShowDialog(IUltravioletWindow window, Modal modal, TimeSpan? duration = null) { Contract.Require(modal, nameof(modal)); modal.Show(window, duration); }
/// <summary> /// Opens the specified modal dialog box. /// </summary> /// <param name="window">The window in which to open the modal dialog box.</param> /// <param name="modal">The modal dialog box to open.</param> /// <param name="duration">The amount of time over which to transition the modal dialog /// box's state, or <see langword="null"/> to use the default transition time.</param> public static void ShowDialog(IUltravioletWindow window, Modal modal, TimeSpan?duration = null) { Contract.Require(modal, nameof(modal)); modal.Show(window, duration); }