private void AutoEmailTimecard(Workday archivedWorkday)
 {
     IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings;
     SetDic AutoSubmitSettings;
     if (settings.TryGetValue<SetDic>("AutoSubmitSettings", out AutoSubmitSettings))
     {
         String EmailAddr;
         if (AutoSubmitSettings.TryGetValue("EmailAddr", out EmailAddr))
         {
             RemoteEmail email = new RemoteEmail();
             email.From = "*****@*****.**";
             email.To = EmailAddr;
             email.Subject = "Timecard for " + archivedWorkday.StartTime.ToString("D");
             email.Body = HtmlHelper.ItemiseWorkday2(archivedWorkday);
             email.EmailRequestCompleted += Email_Completed;
             email.Email();
         }
     }
 }
        private void AutoEmailTimecard(Workday archivedWorkday)
        {
            IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings;
            SetDic AutoSubmitSettings;

            if (settings.TryGetValue <SetDic>("AutoSubmitSettings", out AutoSubmitSettings))
            {
                String EmailAddr;
                if (AutoSubmitSettings.TryGetValue("EmailAddr", out EmailAddr))
                {
                    RemoteEmail email = new RemoteEmail();
                    email.From    = "*****@*****.**";
                    email.To      = EmailAddr;
                    email.Subject = "Timecard for " + archivedWorkday.StartTime.ToString("D");
                    email.Body    = HtmlHelper.ItemiseWorkday2(archivedWorkday);
                    email.EmailRequestCompleted += Email_Completed;
                    email.Email();
                }
            }
        }
 public void Add(RemoteEmail email)
 {
 }
 public void Add(RemoteEmail email)
 {
 }