コード例 #1
0
        public EmailDownloadService(ConfigurationService configurationService,DirectoryService directoryService)
        {
            this.directoryService = directoryService;
            this.configurationService = configurationService;
            this.savePath = directoryService.BaseDir;
            this.emailAccount = "*****@*****.**";
            this.password = "******";

        }
コード例 #2
0
 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"];        
 }
コード例 #3
0
ファイル: ImapTest.cs プロジェクト: cotopboy/nxdaigou_git
        public void ImapTestGetAttachment()
        {
            ConfigurationService configService = new ConfigurationService(null);

            QQImapService qqImapservice = new QQImapService();

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

            qqImapservice.DownloadEmailAttachment();
        }
コード例 #4
0
        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;
        }
コード例 #5
0
ファイル: EmailSender.cs プロジェクト: cotopboy/nxdaigou_git
 public EmailService(ConfigurationService confiService,JokeProvide jokeProvider )
 {
     this.jokeProvider = jokeProvider;
     this.confiService = confiService;
 }
コード例 #6
0
        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);
        }
コード例 #7
0
 public ConfigurationViewModel(ConfigurationService configurationService )
 {
     this.configurationService = configurationService;
     this.loadListCommand = new DelegateCommand(LoadList);
     this.saveCommand = new DelegateCommand(Save);
 }