Exemple #1
0
 /// <summary>
 /// Controller class constructor
 /// </summary>
 /// <param name="newModal">object implementing the IImageModal interface</param>
 /// <param name="log">object implementing the ILoggingService interface (logger service)</param>
 public Controller(IImageModal newModal, ILoggsRecorder log)
 {
     imageModal = newModal;
     logger     = log;
     directoryHandlersManager = null;
     commands = new Dictionary <CommandEnum, ICommand>()
     {
     };
     commands[CommandEnum.NewFileCommand]       = new NewFileCommand(this.imageModal);
     commands[CommandEnum.LogCommand]           = new GetLoggsCommand(this.logger);
     commands[CommandEnum.CloseCommand]         = new CloseDHandlerCommand(this.directoryHandlersManager);
     commands[CommandEnum.GetConfigCommand]     = new GetConfigCommand(this.directoryHandlersManager);
     commands[CommandEnum.PhotoTransferCommand] = new PhotoTransferCommand(this.directoryHandlersManager);
     logger.Log("In Controller, finished constructor", MessageTypeEnum.INFO);
 }
Exemple #2
0
 /// <summary>
 /// constructor
 /// </summary>
 /// <param name="logsRecorder">log recording object</param>
 public GetLoggsCommand(ILoggsRecorder logsRecorder)
 {
     this.m_logsRecorder = logsRecorder;
 }