Moved constant to Constants file

This commit is contained in:
gamosoft_cp 2015-02-24 16:45:33 +00:00
parent 2c225b233c
commit aa2a81cc02
2 changed files with 9 additions and 9 deletions

View File

@ -42,6 +42,11 @@ namespace Outlook2013TodoAddIn
/// </summary>
public const string DonateUrl = "https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ZXYEC3PM6K7TQ&lc=US&item_name=Outlook2103AddInBuyBeer&currency_code=USD&bn=PP%2dDonationsBF%3amybutton%2epng%3aNonHosted";
/// <summary>
/// Topmost value
/// </summary>
public const int WS_EX_TOPMOST = 0x00000008;
#endregion "Variables"
}
}

View File

@ -26,18 +26,13 @@ namespace Outlook2013TodoAddIn.Forms
/// <summary>
/// Don't close the for if the mouse is over it
/// </summary>
private bool mouseIsOver = false;
/// <summary>
/// Topmost value
/// </summary>
private const int WS_EX_TOPMOST = 0x00000008;
#endregion "Variables"
private bool mouseIsOver = false;
/// <summary>
#region "Properties"
/// <summary>
/// Attached email message to open or flag
/// </summary>
public Microsoft.Office.Interop.Outlook.MailItem Email { get; set; }
@ -60,7 +55,7 @@ namespace Outlook2013TodoAddIn.Forms
get
{
CreateParams value = base.CreateParams;
value.ExStyle |= WS_EX_TOPMOST;
value.ExStyle |= Constants.WS_EX_TOPMOST;
return value;
}
}