i forgot to import linq stuff

This commit is contained in:
Norm MacLennan
2014-05-07 10:44:20 -07:00
parent f0e0e9f740
commit ec4914735e
3 changed files with 11 additions and 12 deletions

View File

@@ -54,6 +54,7 @@
<Reference Include="csredis">
<HintPath>..\..\packages\csredis.1.4.7.1\lib\net40\csredis.dll</HintPath>
</Reference>
<Reference Include="System.Core" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />

View File

@@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
namespace NOCQ.Plugins.Email
{

View File

@@ -2,6 +2,7 @@ using System;
using System.Timers;
using AE.Net.Mail;
using System.Collections.Generic;
using System.Linq;
namespace NOCQ.Plugins.Email
{
@@ -24,22 +25,18 @@ namespace NOCQ.Plugins.Email
if (sets.Username == null
|| sets.Password == null
|| sets.Host == null
|| sets.Folder == null
|| sets.Frequency == null
|| sets.Port == null
|| sets.IsSsl == null)
|| sets.Folder == null)
throw new ArgumentException ("You are missing a required setting.");
parseRules = sets.ParseRules.Where (x => x.Enabled);
parseRules = sets.ParseRules.Where (x => x.Enabled).ToList();
loginName = settings.Login;
password = settings.Password;
server = settings.Server;
folderPath = settings.FolderPath;
loginName = sets.Username;
password = sets.Password;
server = sets.Host;
folderPath = sets.Folder;
timer = new Timer (settings.Frequency);
timer.Elapsed += Execute ();
timer = new Timer (sets.Frequency);
//timer.Elapsed += Execute ();
}