예제 #1
0
 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();
         }
     }
 }
예제 #2
0
        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();
                }
            }
        }
예제 #3
0
 public void Add(RemoteEmail email)
 {
 }
예제 #4
0
 public void Add(RemoteEmail email)
 {
 }