Changed alert sound to beep first and then show up the form. Fixed focus steal from alert form.
This commit is contained in:
		
							parent
							
								
									bdee9b1937
								
							
						
					
					
						commit
						1221c65f35
					
				@ -90,7 +90,6 @@ namespace Outlook2013TodoAddIn
 | 
			
		||||
            {
 | 
			
		||||
                this.WindowState = FormWindowState.Normal;
 | 
			
		||||
            }
 | 
			
		||||
            this.Focus();
 | 
			
		||||
            this.BringToFront();
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
@ -108,7 +107,6 @@ namespace Outlook2013TodoAddIn
 | 
			
		||||
        {
 | 
			
		||||
            bool result = ShowWindow(this.Handle, SW_SHOW);
 | 
			
		||||
            //bool result = AnimateWindow(this.Handle, 200, AW_BLEND);
 | 
			
		||||
            this.BringToFront();
 | 
			
		||||
            return result;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -66,8 +66,8 @@ namespace Outlook2013TodoAddIn
 | 
			
		||||
            {
 | 
			
		||||
                NewMailAlert nm = new NewMailAlert(newMail, Properties.Settings.Default.DisplayTimeOut);
 | 
			
		||||
                // Show the popup without stealing focus
 | 
			
		||||
                nm.ShowPopup();
 | 
			
		||||
                SoundHelper.sndPlaySoundW(SoundHelper.MailBeep, SoundHelper.SND_NODEFAULT);
 | 
			
		||||
                nm.ShowPopup();
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user