Changed label. Added check to verify if sending email notifications or not (TODO).

This commit is contained in:
gamosoft_cp 2013-05-01 19:30:43 +00:00
parent cc3656a925
commit 614e17605b
2 changed files with 13 additions and 7 deletions

View File

@ -156,7 +156,7 @@
this.grpRefresh.Size = new System.Drawing.Size(226, 66); this.grpRefresh.Size = new System.Drawing.Size(226, 66);
this.grpRefresh.TabIndex = 3; this.grpRefresh.TabIndex = 3;
this.grpRefresh.TabStop = false; this.grpRefresh.TabStop = false;
this.grpRefresh.Text = "Days:"; this.grpRefresh.Text = "Configuration:";
// //
// apptCalendar // apptCalendar
// //
@ -172,6 +172,7 @@
this.apptCalendar.Name = "apptCalendar"; this.apptCalendar.Name = "apptCalendar";
this.apptCalendar.OtherMonthForeColor = System.Drawing.Color.LightGray; this.apptCalendar.OtherMonthForeColor = System.Drawing.Color.LightGray;
this.apptCalendar.SelectedBackColor = System.Drawing.Color.LightBlue; this.apptCalendar.SelectedBackColor = System.Drawing.Color.LightBlue;
this.apptCalendar.SelectedDate = new System.DateTime(2013, 5, 1, 0, 0, 0, 0);
this.apptCalendar.SelectedForeColor = System.Drawing.Color.Blue; this.apptCalendar.SelectedForeColor = System.Drawing.Color.Blue;
this.apptCalendar.Size = new System.Drawing.Size(226, 242); this.apptCalendar.Size = new System.Drawing.Size(226, 242);
this.apptCalendar.TabIndex = 1; this.apptCalendar.TabIndex = 1;

View File

@ -61,6 +61,10 @@ namespace Outlook2013TodoAddIn
/// <param name="EntryIDCollection">ID of the email</param> /// <param name="EntryIDCollection">ID of the email</param>
private void Application_NewMailEx(string EntryIDCollection) private void Application_NewMailEx(string EntryIDCollection)
{ {
// TODO: Make this optional, still hook the event as this setting will be able to be enabled/disabled by user
if (true)
{
Microsoft.Office.Interop.Outlook.MailItem newMail = Globals.ThisAddIn.Application.Session.GetItemFromID(EntryIDCollection) as Microsoft.Office.Interop.Outlook.MailItem; Microsoft.Office.Interop.Outlook.MailItem newMail = Globals.ThisAddIn.Application.Session.GetItemFromID(EntryIDCollection) as Microsoft.Office.Interop.Outlook.MailItem;
if (newMail != null) if (newMail != null)
{ {
@ -70,6 +74,7 @@ namespace Outlook2013TodoAddIn
nm.ShowPopup(); nm.ShowPopup();
} }
} }
}
/// <summary> /// <summary>
/// Store the new size setting upon resizing /// Store the new size setting upon resizing