public SoundConfig(ISoundNotifier soundNotifier) { InitializeComponent(); _soundTextBoxDefBackColor = SoundTextBox.BackColor; _soundNotifier = soundNotifier; SetSoundTextBoxText(_soundNotifier.SoundName); }
public ToasterNotifier(ISoundNotifier soundNotifier) { _soundNotifier = soundNotifier; _notified = false; _stopwatch = new Stopwatch(); _notificationWindow = new NotificationWindow(); _notificationWindow.Left = SystemParameters.WorkArea.Right - _notificationWindow.Width - BorderOffset; _notificationWindow.Top = SystemParameters.WorkArea.Bottom - _notificationWindow.Height - BorderOffset; _notificationWindow.Height = 0; _notificationWindow.Show(); }
public SoundConfig(ISoundNotifier soundNotifier, [NotNull] ISoundManager soundManager) { if (soundManager == null) { throw new ArgumentNullException("soundManager"); } InitializeComponent(); _soundTextBoxDefBackColor = SoundTextBox.BackColor; this.soundNotifier = soundNotifier; this.soundManager = soundManager; SetSoundTextBoxText(this.soundManager.GetSoundById(this.soundNotifier.SoundId).Name); }