Ejemplo n.º 1
0
 public TicketCreateViewModel(ISecurityService security, SettingsService settings, Ticket ticket)
 {
     ListUtility = MefHttpApplication.ApplicationContainer.GetExportedValue<SelectListUtility>();
     Security = security;
     Settings = settings;
     Ticket = ticket;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="TicketCenterListViewModel"/> class.
        /// </summary>
        /// <param name="listName">Name of the list.</param>
        /// <param name="ticketsList">The tickets list.</param>
        /// <param name="serviceModel">The service model.</param>
        public TicketCenterListViewModel(string listName, IPagination<Ticket> ticketsList, SettingsService settings, ISecurityService security)
        {
            Tickets = ticketsList;
            CurrentListSettings = settings.UserSettings.GetDisplayPreferences().GetPreferencesForList(listName);
            FilterBar = new FilterBarViewModel(CurrentListSettings, security.GetTdStaffUsers(), security.GetTdSubmitterUsers());
            ListsForMenu = settings.UserSettings.GetDisplayPreferences().TicketCenterListPreferences.OrderBy(lp => lp.ListMenuDisplayOrder).ToArray();

        }
Ejemplo n.º 3
0
 public SelectListUtility(SettingsService settings, ISecurityService security)
 {
     Settings = settings;
     Security = security;
 }
Ejemplo n.º 4
0
 public AccountController(ISecurityService security, SettingsService settings):base(security)
 {
     Settings = settings;
 }
 public TicketCenterController(ITicketService ticketService, ISecurityService security, SettingsService settings)
     : base(security)
 {
     Tickets = ticketService;
     Settings = settings;
 }
Ejemplo n.º 6
0
 public UploaderController(ITicketService ticketService, SettingsService settingsService)
 {
     Settings = settingsService;
     Tickets = ticketService;
 }
Ejemplo n.º 7
0
 public AdminHomeController(ISecurityService security, SettingsService settings)
     : base(security)
 {
     Settings = settings;
 }
 public ApplicationSettingsController(ISecurityService security, SettingsService settings)
     : base(security)
 {
     Settings = settings;
 }
Ejemplo n.º 9
0
 public bool ChangeUserPreferences(string userName, string displayName, string emailAddress, bool openEditorWithPreview, SettingsService settingsService)
 {
     bool status = false;
     try
     {
         var user = _provider.GetUser(userName, true);
         user.Email = emailAddress;
         user.Comment = displayName;
         _provider.UpdateUser(user);
         settingsService.UserSettings.OpenEditorWithPreview = openEditorWithPreview;
         status = true;
     }
     catch { }
     return status;
 }