/// <summary>
        /// Public constructor. Creates a new AppLogPresenter which maintains
        /// available application logs and prepares them for display.
        /// </summary>
        /// <param name="hub">The application hub providing elemental functionality.</param>
        /// <param name="view">The associated view.</param>
        /// <param name="dialog">A SaveFileDialog used to select a valid path for log files.</param>
        public AppLogPresenter(IAppHub hub, IAppLogWindow view, SaveFileDialog dialog)
        {
            _hub = hub;
            _view = view;
            _view.Presenter = this;
            _dialog = dialog;

            SetupView();
        }
Beispiel #2
0
 public SchoolStaffDecorator(
     Repository <SchoolStaff> _context,
     ApplicationDbContext context,
     IAppHub hub) : base(_context, context, hub)
 {
     base.MethodUpdate = "UpdateMessage";
     base.MethodAdd    = "AddMessage";
     base.MethodRemove = "RemoveMessage";
 }
Beispiel #3
0
 public ProfessionDecorator(
     Repository <Profession> _context,
     ApplicationDbContext context,
     IAppHub hub) : base(_context, context, hub)
 {
     base.MethodUpdate = "UpdateMessageProfession";
     base.MethodAdd    = "AddMessageProfession";
     base.MethodRemove = "RemoveMessageProfession";
 }
 public ServiceDecorator(
     Repository <T> context,
     ApplicationDbContext dbcontext,
     IAppHub hub)
 {
     _context   = context;
     _dbcontext = dbcontext;
     _hub       = hub;
     //_dbSet = _context.Set<T>();
 }
 public ProjectsController(ApplicationDbContext context, IMapper mapper, IAppHub appHub)
 {
     _context = context;
     _mapper  = mapper;
     _appHub  = appHub;
 }
 public ProjectEmployeesController(ApplicationDbContext context, IAppHub appHub)
 {
     _context = context;
     _appHub  = appHub;
 }