public AlarmNotificationWindow(DateTime time, string name, string trackPath)
        {
            Content     = new NotifyAlarmUserControl(time, name);
            Topmost     = true;
            WindowStyle = WindowStyle.None;
            ResizeMode  = ResizeMode.NoResize;
            Width       = 300;
            Height      = 150;
            Left        = Screen.PrimaryScreen.WorkingArea.Right - Width - 10;
            Top         = Screen.PrimaryScreen.WorkingArea.Bottom - Height - 10;
            KeyDown    += AlarmNotificationWindow_KeyDown;
            Background  = new SolidColorBrush(Colors.Transparent);
            AudioPlayer player = new AudioPlayer(trackPath);

            player.PlayLooped();
            Closing += delegate
            {
                player.Stop();
            };
        }
        public AlarmNotificationWindow(DateTime time, string name, string trackPath)
        {

            Content = new NotifyAlarmUserControl(time, name);
            Topmost = true;
            WindowStyle = WindowStyle.None;
            ResizeMode = ResizeMode.NoResize;
            Width = 300;
            Height = 150;
            Left = Screen.PrimaryScreen.WorkingArea.Right - Width - 10;
            Top = Screen.PrimaryScreen.WorkingArea.Bottom - Height - 10;
            KeyDown += AlarmNotificationWindow_KeyDown;
            Background = new SolidColorBrush(Colors.Transparent);
            AudioPlayer player = new AudioPlayer(trackPath);
            player.PlayLooped();
            Closing += delegate
            {
                player.Stop();
            };
            
        }