public ToTimerOptionsInfo ( ) : |
||
Résultat |
public TimerOptionsInfo ToTimerOptionsInfo()
{
return new TimerOptionsInfo
{
Title = this.title,
AlwaysOnTop = this.alwaysOnTop,
PromptOnExit = this.promptOnExit,
DoNotKeepComputerAwake = this.doNotKeepComputerAwake,
ShowTimeElapsed = this.showTimeElapsed,
LoopTimer = this.loopTimer,
PopUpWhenExpired = this.popUpWhenExpired,
CloseWhenExpired = this.closeWhenExpired,
ShutDownWhenExpired = this.shutDownWhenExpired,
ThemeIdentifier = this.theme?.Identifier,
SoundIdentifier = this.sound?.Identifier,
LoopSound = this.loopSound,
WindowTitleMode = this.windowTitleMode,
WindowSize = WindowSizeInfo.FromWindowSize(this.windowSize)
};
}
/// <summary> /// Returns a <see cref="TimerOptionsInfo"/> for the specified <see cref="TimerOptions"/>. /// </summary> /// <param name="options">A <see cref="TimerOptions"/>.</param> /// <returns>A <see cref="TimerOptionsInfo"/> for the specified <see cref="TimerOptions"/>.</returns> public static TimerOptionsInfo FromTimerOptions(TimerOptions options) { if (options == null) { return null; } return options.ToTimerOptionsInfo(); }