public FrmNotes(INotesService notesService)
 {
     InitializeComponent();
     _presenter = new NotesManagerPresenter(this, notesService);
     _presenter.LoadNotes();
     RegisterViewEvents();
 }
        public NotesController(INotesService notesService)
        {
            if (notesService == null)
            {
                throw new ArgumentNullException("notesService");
            }

            _notesService = notesService;
        }
예제 #3
0
        public void TestSetup()
        {
            pageService = new PageService(ConfigurationSettings.AppSettings["backpack.account.name"].ToString(), ConfigurationSettings.AppSettings["backpack.account.token"].ToString());
            journalService = new JournalService(ConfigurationSettings.AppSettings["backpack.account.name"].ToString(), ConfigurationSettings.AppSettings["backpack.account.token"].ToString());
            listsService = new ListsService(ConfigurationSettings.AppSettings["backpack.account.name"].ToString(), ConfigurationSettings.AppSettings["backpack.account.token"].ToString());
            listItemsService = new ListItemsService(ConfigurationSettings.AppSettings["backpack.account.name"].ToString(), ConfigurationSettings.AppSettings["backpack.account.token"].ToString());
            notesService = new NotesService(ConfigurationSettings.AppSettings["backpack.account.name"].ToString(), ConfigurationSettings.AppSettings["backpack.account.token"].ToString());
            separatorService = new SeparatorService(ConfigurationSettings.AppSettings["backpack.account.name"].ToString(), ConfigurationSettings.AppSettings["backpack.account.token"].ToString());
            statusService = new StatusService(ConfigurationSettings.AppSettings["backpack.account.name"].ToString(), ConfigurationSettings.AppSettings["backpack.account.token"].ToString());
            tagsService = new TagsService(ConfigurationSettings.AppSettings["backpack.account.name"].ToString(), ConfigurationSettings.AppSettings["backpack.account.token"].ToString());
            userService = new UserService(ConfigurationSettings.AppSettings["backpack.account.name"].ToString(), ConfigurationSettings.AppSettings["backpack.account.token"].ToString());

            testPageId = ConfigurationSettings.AppSettings["backpack.pages.testpage"].ToString();
            testUserId = ConfigurationSettings.AppSettings["backpack.users.testuserid"].ToString();
            testInvalidUserId = ConfigurationSettings.AppSettings["backpack.users.testinvaliduserid"].ToString();
            testTagId = ConfigurationSettings.AppSettings["backpack.pages.testtagid"].ToString();
            testPageTitle = ConfigurationSettings.AppSettings["backpack.pages.testpagetitle"].ToString();
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="AgileCrm" /> class.
        /// </summary>
        /// <param name="companiesService">The companies service.</param>
        /// <param name="contactsService">The contacts service.</param>
        /// <param name="dealsService">The deals service.</param>
        /// <param name="notesService">The notes service.</param>
        /// <param name="tasksService">The tasks service.</param>
        internal AgileCrm(
            ICompaniesService companiesService,
            IContactsService contactsService,
            IDealsService dealsService,
            INotesService notesService,
            ITasksService tasksService)
        {
            companiesService.EnsureNotNull();
            contactsService.EnsureNotNull();
            dealsService.EnsureNotNull();
            notesService.EnsureNotNull();
            tasksService.EnsureNotNull();

            this.companiesService = companiesService;
            this.contactsService  = contactsService;
            this.dealsService     = dealsService;
            this.notesService     = notesService;
            this.tasksService     = tasksService;
        }
 public MeetingCaptureController(
     IUserService userService,
     ICalendarService calendarService,
     IMeetingService meetingService,
     IMeetingDBService meetingDBService,
     IFileService fileService,
     IPlanTaskService planTaskService,
     INotesService notesService,
     IViewRenderService viewRenderService)
 {
     _userService       = userService;
     _calendarService   = calendarService;
     _meetingService    = meetingService;
     _meetingDBService  = meetingDBService;
     _fileService       = fileService;
     _planTaskService   = planTaskService;
     _notesService      = notesService;
     _viewRenderService = viewRenderService;
 }
예제 #6
0
 public NotificationService(IDepartmentNotificationRepository departmentNotificationRepository, IDepartmentsService departmentsService,
                            IUnitsService unitsService, IUserStateService userStateService, IDepartmentGroupsService departmentGroupsService, IActionLogsService actionLogsService,
                            IPersonnelRolesService personnelRolesService, IUserProfileService userProfileService, ICalendarService calendarService, IDocumentsService documentsService,
                            INotesService notesService, IWorkLogsService workLogsService, IShiftsService shiftsService, ICustomStateService customStateService)
 {
     _departmentNotificationRepository = departmentNotificationRepository;
     _departmentsService      = departmentsService;
     _unitsService            = unitsService;
     _userStateService        = userStateService;
     _departmentGroupsService = departmentGroupsService;
     _actionLogsService       = actionLogsService;
     _personnelRolesService   = personnelRolesService;
     _userProfileService      = userProfileService;
     _calendarService         = calendarService;
     _documentsService        = documentsService;
     _notesService            = notesService;
     _workLogsService         = workLogsService;
     _shiftsService           = shiftsService;
     _customStateService      = customStateService;
 }
예제 #7
0
        public PreferencesViewModel(IPreferencesService preferencesService, INotesService notesService)
        {
            _preferencesService = preferencesService;
            _notesService       = notesService;

            notesDirectory = preferencesService.Preferences.NotesDirectory;

            selectedAutoSaveIntervalIndex = Array.IndexOf(_autoSaveIntervalValues, preferencesService.Preferences.AutoSaveInterval);

            availableThemes    = ThemeManager.Themes;
            _initialThemeIndex = selectedThemeIndex = Array.IndexOf(availableThemes, preferencesService.Preferences.Theme);

            string globalFont = _notesService.GetFontThatAllNotesUse();

            if (globalFont != null)
            {
                availableFonts    = Globals.AvailableFonts;
                _initialFontIndex = selectedFontIndex = Array.IndexOf(availableFonts, globalFont);
            }
            else
            {
                availableFonts = DropdownUtil.GetOptionsWithFirst(Globals.AvailableFonts, CustomLabel);
            }

            int?globalFontSize = _notesService.GetFontSizeThatAllNotesUse();

            if (globalFontSize.HasValue)
            {
                availableFontSizes    = Globals.AvailableFontSizes.Select(x => x.ToString()).ToArray();
                _initialFontSizeIndex = selectedFontSizeIndex = Array.IndexOf(availableFontSizes, globalFontSize.Value.ToString());
            }
            else
            {
                availableFontSizes = DropdownUtil.GetOptionsWithFirst(Globals.AvailableFontSizes, CustomLabel);
            }
        }
        public ArchivedNotesViewModel(INotesService notesService)
        {
            _notesService           = notesService;
            _notesService.Archived += NoteArchived;
            _notesService.Restored += NoteRestored;
            _notesService.Deleted  += NoteDeleted;

            var archived = _notesService.LoadArchived();

            archivedNotesExist = archived.Any();
            searchFieldEnabled = archived.Length > 1;

            var viewModels = archived.Select(x => new ArchivedNoteViewModel(x));

            ArchivedNotes.AddRange(viewModels);

            shadowNotes = viewModels.ToList();

            OnRestoreCommand     = ReactiveCommand.Create(RestoreSelectedNote);
            OnDeleteCommand      = ReactiveCommand.Create(DeleteSelectedNote);
            OnConfirmCommand     = ReactiveCommand.Create(ConfirmDelete);
            OnCancelCommand      = ReactiveCommand.Create(CancelDelete);
            OnClearSearchCommand = ReactiveCommand.Create(ClearSearch);
        }
예제 #9
0
 public NotesController(INotesService notesService, IMapService mapService)
 {
     _notesService = notesService;
     _mapService   = mapService;
 }
예제 #10
0
 public NotesController(INotesService notesService)
 {
     _notesService = notesService;
 }
예제 #11
0
 public NotesController(ILogger <NotesController> logger, INotesService notesService)
 {
     this.logger       = logger;
     this.notesService = notesService;
 }
예제 #12
0
 public NotesController(INotesService notesService, UserManager <ApplicationUser> userManager)
 {
     _notesService = notesService;
     _userManager  = userManager;
 }
예제 #13
0
 public NotesController(INotesService notesService, IMapper mapper, INotebooksService notebooksService)
 {
     this.notesService     = notesService;
     this.notebooksService = notebooksService;
     this.mapper           = mapper;
 }
 public ListManagementController(IBooksService bookService, ILocationService locationService, INotesService notesService)
 {
     _bookService     = bookService;
     _LocationService = locationService;
     _NotesService    = notesService;
 }
예제 #15
0
 public NotesController(NoteContext context)
 {
     _NoteServices = new NoteServices(context);
 }
예제 #16
0
 private void ResolveDependencies()
 {
     m_Notes       = CurrentRequest.Resolver.Resolve <INotesService>();
     m_ActivityLog = CurrentRequest.Resolver.Resolve <IActivityLogService>();
 }
예제 #17
0
 public NoteController(NotesContext context, INotesService notesService)
 {
     _context      = context;
     _notesService = notesService;
 }
예제 #18
0
 public LoginPage(string login, string password, string status, IAccountService accountService, INotesService notesService) : this(accountService, notesService)
 {
     LoginEntry.Text    = login;
     PasswordEntry.Text = password;
     StatusLabel.Text   = status;
 }
예제 #19
0
 public void SetUp()
 {
     _notesRepository = new Mock<INotesRepository>();
     _notesService = new NotesService(_notesRepository.Object);
 }
 public NotesManagerPresenter(INotesManagerView view, INotesService notesService)
 {
     _notesService = notesService;
     _view = view;
 }
 public NotesController(ITaskListsService taskListsService, INotesService notesService, IUsersService usersService)
 {
     _taskListsService = taskListsService;
     _notesService = notesService;
     _usersService = usersService;
 }
예제 #22
0
 public CasesService(IDeletableEntityRepository <Case> casesRepository, INotesService notesService)
 {
     this.casesRepository = casesRepository;
     this.notesService    = notesService;
 }
예제 #23
0
 public RemoteNotesService(INotesService notesService)
 {
     NotesService = notesService;
 }
예제 #24
0
 public NotesProcessor()
 {
     _notesService = ObjectFactoryBase.Resolve <INotesService>();
 }
예제 #25
0
 public CreateNotePage(INotesService notesService) : this()
 {
     NotesService = notesService;
 }
예제 #26
0
 public NotesProvider(INotesService notesService)
 {
     _notesService = notesService;
     _folder       = ApplicationData.Current.LocalFolder;
 }
예제 #27
0
 public NotesController(INotesService notesService, IMapper mapper)
 {
     _notesService = notesService;
     _mapper       = mapper;
 }
예제 #28
0
        public OpportunityFactory(
            ILogger <OpportunityFactory> logger,
            IOptionsMonitor <AppOptions> appOptions,
            GraphSharePointAppService graphSharePointAppService,
            GraphUserAppService graphUserAppService,
            CardNotificationService cardNotificationService,
            INotesService notesService,
            ICheckListProcessService checkListProcessService,
            ICustomerDecisionProcessService customerDecisionProcessService,
            ICustomerFeedbackProcessService customerFeedbackProcessService,
            IProposalDocumentProcessService proposalStatusProcessService,
            INewOpportunityProcessService newOpportunityProcessService,
            IDashboardService dashboardService,
            IAuthorizationService authorizationService,
            IPermissionRepository permissionRepository,
            IStartProcessService startProcessService,
            IDashboardAnalysis dashboardAnalysis,
            GraphTeamsAppService graphTeamsAppService,
            IAddInHelper addInHelper,
            GraphTeamsOnBehalfService graphTeamsOnBeahalfService,
            IMemberService memberService,
            ITeamChannelService teamChannelService,
            IAzureKeyVaultService azureKeyVaultService) : base(logger, appOptions)
        {
            Guard.Against.Null(graphSharePointAppService, nameof(graphSharePointAppService));
            Guard.Against.Null(graphUserAppService, nameof(graphUserAppService));
            Guard.Against.Null(cardNotificationService, nameof(cardNotificationService));
            Guard.Against.Null(notesService, nameof(notesService));
            Guard.Against.Null(checkListProcessService, nameof(checkListProcessService));
            Guard.Against.Null(customerDecisionProcessService, nameof(customerDecisionProcessService));
            Guard.Against.Null(customerFeedbackProcessService, nameof(customerFeedbackProcessService));
            Guard.Against.Null(proposalStatusProcessService, nameof(proposalStatusProcessService));
            Guard.Against.Null(newOpportunityProcessService, nameof(newOpportunityProcessService));
            Guard.Against.Null(startProcessService, nameof(startProcessService));
            Guard.Against.Null(dashboardService, nameof(dashboardService));
            Guard.Against.Null(dashboardAnalysis, nameof(dashboardAnalysis));
            Guard.Against.Null(authorizationService, nameof(authorizationService));
            Guard.Against.Null(permissionRepository, nameof(permissionRepository));
            Guard.Against.Null(graphTeamsAppService, nameof(graphTeamsAppService));
            Guard.Against.Null(addInHelper, nameof(addInHelper));

            _graphSharePointAppService = graphSharePointAppService;
            _graphUserAppService       = graphUserAppService;

            _cardNotificationService        = cardNotificationService;
            _checkListProcessService        = checkListProcessService;
            _customerDecisionProcessService = customerDecisionProcessService;
            _customerFeedbackProcessService = customerFeedbackProcessService;
            _proposalStatusProcessService   = proposalStatusProcessService;
            _newOpportunityProcessService   = newOpportunityProcessService;
            _startProcessService            = startProcessService;
            _dashboardService          = dashboardService;
            _authorizationService      = authorizationService;
            _permissionRepository      = permissionRepository;
            _graphTeamsAppService      = graphTeamsAppService;
            _dashboardAnalysis         = dashboardAnalysis;
            _addInHelper               = addInHelper;
            _graphTeamsOnBehalfService = graphTeamsOnBeahalfService;
            _azureKeyVaultService      = azureKeyVaultService;

            _memberService      = memberService;
            _teamChannelService = teamChannelService;
            _notesService       = notesService;
        }
예제 #29
0
 public NotesController(INotesService service)
 {
     this.service = service;
 }
 public FilesController(IFilesService filesService, INotesService notesService, ITaskListsService taskListsService)
 {
     _filesService = filesService;
     _notesService = notesService;
     _taskListsService = taskListsService;
 }
예제 #31
0
 public QuestionsController(ITermsService termsService, ISubjectsService subjectsService, INotesService notesService,
                            IQuestionsService questionsService, IRecruitsService recruitsService,
                            IAttachmentsService attachmentsService, IMapper mapper)
 {
     _mapper             = mapper;
     _termsService       = termsService;
     _notesService       = notesService;
     _questionsService   = questionsService;
     _subjectsService    = subjectsService;
     _attachmentsService = attachmentsService;
     _recruitsService    = recruitsService;
 }
예제 #32
0
 public NotesController(ILogger <NotesController> logger,
                        INotesService service)
 {
     _logger  = logger;
     _service = service;
 }
예제 #33
0
 public NotesServiceIIS()
 {
     _service = new NotesService(
         logger: LoggerHelper.GetLogger(typeof(NotesServiceIIS))
         );
 }
 public NotesManagerPresenter(INotesManagerView view, INotesService notesService)
 {
     _notesService = notesService;
     _view         = view;
 }
예제 #35
0
 public HomeController(INotesService notesService)
 {
     _notesService = notesService;
 }
 public TasksRestService(INotesService notesService, ITaskListsService taskListsService)
 {
     _notesService = notesService;
     _taskListsService = taskListsService;
 }
예제 #37
0
 public OpenNotesCommandHandler(INotesService notesService)
 {
     _notesService = notesService;
 }
예제 #38
0
 public NotesController(INotesService notesService, IDepartmentsService departmentsService)
 {
     _notesService       = notesService;
     _departmentsService = departmentsService;
 }
예제 #39
0
 public NotesController(Application.INotesService notesService)
 {
     _notesService = notesService;
 }
예제 #40
0
 public NotesController(INotesService notesService)
 {
     _notesService = notesService;
 }