public EmailDownloadService(ConfigurationService configurationService,DirectoryService directoryService)
        {
            this.directoryService = directoryService;
            this.configurationService = configurationService;
            this.savePath = directoryService.BaseDir;
            this.emailAccount = "*****@*****.**";
            this.password = "******";

        }
 public QQImapService(ConfigurationService configurationService,DirectoryService directoryService)
 {
  
     this.directoryService = directoryService;
     this.configurationService = configurationService;
     this.savePath = directoryService.BaseDir;
     this.emailAccount = configurationService.ConfigDict["SenderQQEmail"];
     this.password = configurationService.ConfigDict["SenderPw"];        
 }
Exemple #3
0
        public void ImapTestGetAttachment()
        {
            ConfigurationService configService = new ConfigurationService(null);

            QQImapService qqImapservice = new QQImapService();

            qqImapservice.SavePath = @"T:\";
            qqImapservice.EmailAccount = "*****@*****.**";
            qqImapservice.Password = "******";

            qqImapservice.DownloadEmailAttachment();
        }
        public AddRecipientViewModel(CnRecipientParser cnRecipientParser, 
                                     IEventAggregator eventAggregator, 
                                     ConfigurationService configurationService
                                    )
        {
            this.addRecipientCommand = new DelegateCommand(AddRecipient);
            this.cleanContentCommand = new DelegateCommand(CleanRawContent);
            this.removeSpaceCommand = new DelegateCommand(RemoveSpace);
            this.addAgentCommand = new DelegateCommand(AddAgent);
            this.cnRecipientParser = cnRecipientParser;
            this.eventAggregator = eventAggregator;
            this.configurationService = configurationService;

            string value = this.configurationService.ConfigDict.GetValue_safe("LatestNewAddedRecipients", "");

            this.AddRecipientRawContent = value;
        }
Exemple #5
0
 public EmailService(ConfigurationService confiService,JokeProvide jokeProvider )
 {
     this.jokeProvider = jokeProvider;
     this.confiService = confiService;
 }
        public RecipientViewModel(
            RecipientService recipientService,
            ConfigurationService configurationService,
            IEventAggregator eventAggregator,
            DirectoryService directoryService,
            CnRecipientLabelBuilder cnLabelPrinter,
            AgentListService agentListSvc)
        {
            this.recipientService = recipientService;
            this.agentListSvc = agentListSvc;
            this.loadRecipientListCommand = new DelegateCommand(LoadRecipientList);

            this.removeRecipientCommand = new DelegateCommand<int?>(RemoveRecipient, CanExecuteRemoveRecipient);
            this.saveRecipientChangeCommand = new DelegateCommand<RecipientItemViewModel>(SaveRecipient, CanExeciteSaveRecipient);
            this.copyRecipientInfoCommand = new DelegateCommand(CopyRecipientInfo);

            this.cleanFilterTxtCommand = new DelegateCommand(() => this.FilterTxt = string.Empty);
            this.printCNAddressLabelCommand = new DelegateCommand(PrintCNAddressLabel, CanExecutePrintCNAddressLabel);
            this.addToNewOrderCommand = new DelegateCommand(AddToNewOrder, CanAddToNewOrder);
            this.addPhotoCommand = new DelegateCommand(AddPhotoFlag);
            this.addStampCommand = new DelegateCommand(AddStampFlat);

            this.eventAggregator = eventAggregator;
            this.cnLabelPrinter = cnLabelPrinter;
            this.directoryService = directoryService;

            this.PropertyChanged += new PropertyChangedEventHandler(RecipientViewModel_PropertyChanged);

            this.eventAggregator.GetEvent<ParseRawTextRecipientFinishedEvent>().Subscribe
                (OnParseRawTextRecipientFinished, ThreadOption.UIThread);
        }
 public ConfigurationViewModel(ConfigurationService configurationService )
 {
     this.configurationService = configurationService;
     this.loadListCommand = new DelegateCommand(LoadList);
     this.saveCommand = new DelegateCommand(Save);
 }