/// <summary> /// Sets all of the options from an instance of the <see cref="TimerOptionsInfo"/> class. /// </summary> /// <param name="info">A <see cref="TimerOptionsInfo"/>.</param> public void Set(TimerOptionsInfo info) { if (info == null) { throw new ArgumentNullException("info"); } this.title = info.Title; this.alwaysOnTop = info.AlwaysOnTop; this.promptOnExit = info.PromptOnExit; this.showProgressInTaskbar = info.ShowProgressInTaskbar; this.doNotKeepComputerAwake = info.DoNotKeepComputerAwake; this.showTimeElapsed = info.ShowTimeElapsed; this.loopTimer = info.LoopTimer; this.popUpWhenExpired = info.PopUpWhenExpired; this.closeWhenExpired = info.CloseWhenExpired; this.shutDownWhenExpired = info.ShutDownWhenExpired; //this.theme = Theme.FromIdentifier(info.ThemeIdentifier); this.sound = Sound.FromIdentifier(info.SoundIdentifier); this.loopSound = info.LoopSound; this.windowTitleMode = info.WindowTitleMode; this.windowSize = WindowSize.FromWindowSizeInfo(info.WindowSize); this.lockInterface = info.LockInterface; this.OnPropertyChanged( "Title", "AlwaysOnTop", "PromptOnExit", "ShowProgressInTaskbar", "DoNotKeepComputerAwake", "ShowTimeElapsed", "LoopTimer", "PopUpWhenExpired", "CloseWhenExpired", "ShutDownWhenExpired", "Theme", "Sound", "LoopSound", "WindowTitleMode", "WindowSize", "LockInterface"); }