예제 #1
0
        public CallEBayProcessing(ILogService log,
                                  ITime time,
                                  ICacheService cacheService,
                                  IDbFactory dbFactory,
                                  IStyleManager styleManager,
                                  eBayApi eBayApi,
                                  IEmailService emailService,
                                  CompanyDTO company)
        {
            _log                                 = log;
            _time                                = time;
            _dbFactory                           = dbFactory;
            _cacheService                        = cacheService;
            _styleManager                        = styleManager;
            _descriptionTemplatePath             = Path.Combine(AppSettings.TemplateDirectory, TemplateHelper.EBayDescriptionTemplateName);
            _descriptionMultiListingTemplatePath = Path.Combine(AppSettings.TemplateDirectory, TemplateHelper.EBayDescriptionMultiListingTemplateName);

            _eBayApi      = eBayApi;
            _company      = company;
            _emailService = emailService;

            _actionService = new SystemActionService(_log, _time);
            _htmlScraper   = new HtmlScraperService(log, time, dbFactory);

            var itemHistoryService = new ItemHistoryService(_log, _time, _dbFactory);

            _barcodeService           = new BarcodeService(log, time, dbFactory);
            _autoCreateListingService = new AutoCreateEBayListingService(_log, _time, dbFactory, cacheService, _barcodeService, _emailService, itemHistoryService, AppSettings.IsDebug);
        }
예제 #2
0
        protected StyledClassificationFormatDefinition(IStyleManager styleManager) : this()
        {
            var style = styleManager.GetStyleForClassificationType(ClassificationTypeName);

            ForegroundColor = style.ForegroundColor;
            IsBold          = style.Bold;
        }
 protected StyledClassificationFormatDefinition(IStyleManager styleManager)
     : this()
 {
     var style = styleManager.GetStyleForClassificationType(ClassificationTypeName);
     ForegroundColor = style.ForegroundColor;
     IsBold = style.Bold;
 }
예제 #4
0
        public MUIMessageBox(IStyleManager styleManager, MessageBoxButtons buttons, Size size)
            : base(styleManager, size)
        {
            InitializeComponent();
            this.ShowInTaskbar = false;
            this.StartPosition = FormStartPosition.CenterScreen;
            this.TopMost       = true;
            Buttons            = buttons;

            this.Load += MUIMessageBox_Load;
        }
        public MUIBaseForm(IStyleManager manager, Size size)
            : base()
        {
            this.FormBorderStyle = FormBorderStyle.None; // get rid of the standard title bar
            InitializeComponent();
            Size         = size;
            StyleManager = manager;



            this.Load        += MUIBaseForm_Load;
            this.FormClosing += MUIBaseForm_FormClosing;
        }
예제 #6
0
        public AmazonReportService(AmazonReportType reportType,
                                   long companyId,
                                   AmazonApi api,
                                   ILogService log,
                                   ITime time,
                                   IDbFactory dbFactory,
                                   ISyncInformer syncInfo,
                                   IStyleManager styleManager,
                                   INotificationService notificationService,
                                   IStyleHistoryService styleHistoryService,
                                   IItemHistoryService itemHistoryService,
                                   ISystemActionService actionService,
                                   IReportParser parser,
                                   string path = "")
        {
            _log       = log;
            _time      = time;
            _dbFactory = dbFactory;

            _api = api;

            _reportInfo = new AmazonReportInfo();
            _reportInfo.ReportRequestId = String.Empty;

            _path          = path;
            _companyId     = companyId;
            _syncInfo      = syncInfo;
            _reportType    = reportType;
            _parser        = parser;
            _actionService = actionService;

            var parseContext = new ParseContext()
            {
                Log                 = log,
                Time                = time,
                DbFactory           = dbFactory,
                ActionService       = actionService,
                StyleManager        = styleManager,
                NotificationService = notificationService,
                StyleHistoryService = styleHistoryService,
                ItemHistoryService  = itemHistoryService,
                SyncInformer        = syncInfo,
                CompanyId           = companyId
            };

            _parser.Init(parseContext);

            _log.Info(string.Format("Path: {0}", path));
        }
 public ListingLineProcessing(ParseContext parseContext,
                              ITime time,
                              bool canCreateStyleInfo)
 {
     _log                 = parseContext.Log;
     _companyId           = parseContext.CompanyId;
     _styleManager        = parseContext.StyleManager;
     _syncInfo            = parseContext.SyncInformer;
     _notificationService = parseContext.NotificationService;
     _styleHistoryService = parseContext.StyleHistoryService;
     _itemHistoryService  = parseContext.ItemHistoryService;
     _actionService       = parseContext.ActionService;
     _time                = time;
     _canCreateStyleInfo  = canCreateStyleInfo;
 }
예제 #8
0
        public MUIMdiParent(IStyleManager manager, Size size)
            : base(manager, size)
        {
            this.IsMdiContainer = true;
            Control[] controls = this.GetControlsByType(typeof(MdiClient));
            foreach (Control item in controls)
            {
                item.BackColor = StyleManager.MdiParentBackColor;
            }

            this.MainMenuStrip = new MenuStrip()
            {
                Visible = false
            };
            this.Load += MUIMdiParent_Load;
        }
 public BuildMessageWarningFormatDefinition(IStyleManager styleManager) : base(styleManager)
 {
 }
 public DebugExceptionFormatDefinition(IStyleManager styleManager)
     : base(styleManager)
 {
 }
예제 #11
0
 public MUIForm(IStyleManager manager, Size size)
     : base(manager, size)
 {
     this.Load += MUIForm_Load;
 }
 public DebugTraceErrorFormatDefinition(IStyleManager styleManager) : base(styleManager)
 {
 }
예제 #13
0
 /// <summary>
 /// Выполняет определяемые приложением задачи, связанные с удалением, высвобождением или сбросом неуправляемых ресурсов.
 /// </summary>
 /// <filterpriority>2</filterpriority>
 public void Dispose()
 {
     Shell.IsNarrowViewChanged.RemoveCallback(_callbackId);
     _styleManager = null;
 }
예제 #14
0
 public MUIMessageBox(IStyleManager styleManager, MessageBoxButtons buttons)
     : this(styleManager, buttons, new Size(600, 300))
 {
 }
예제 #15
0
 public MUIMessageBox(IStyleManager styleManager)
     : this(styleManager, MessageBoxButtons.OKCancel, new Size(600, 300))
 {
 }
 public MUIButton(IStyleManager manager)
 {
     StyleManager = manager;
 }
예제 #17
0
 public ToolController(IStyleManager styleManager)
 {
     _styleManager = styleManager;
 }
 public NpmResultFailedFormatDefinition(IStyleManager styleManager)
     : base(styleManager)
 {
 }
예제 #19
0
 /// <summary>
 /// Конструктор.
 /// </summary>
 public DvachTextRenderStyle()
 {
     _callbackId = Shell.IsNarrowViewChanged.AddCallback(this);
     _styleManager = StyleManagerFactory.Current.GetManager();
 }
예제 #20
0
 public StyleReset(Style style, StyleGroup group, IStyleManager styleMgr)
 {
     this.style = styleMgr;
     this.style.Set(style, group);
 }
 public BuildResultFailedFormatDefinition(IStyleManager styleManager) : base(styleManager)
 {
 }
 public BuildResultSucceededFormatDefinition(IStyleManager styleManager) : base(styleManager)
 {
 }
 public NpmMessageWarningFormatDefinition(IStyleManager styleManager)
     : base(styleManager)
 {
 }
예제 #24
0
 internal Sheet(IWorkbook workbook, string name)
 {
     _sheet        = workbook.CreateSheet(name);
     _styleManager = new StyleManager(_sheet.Workbook);
 }
예제 #25
0
 /// <summary>
 /// Construct a <see cref="Logger"/> with the given output text writer
 /// </summary>
 /// <param name="output"></param>
 /// <param name="style"></param>
 public Logger(TextWriter output, IStyleManager style)
 {
     this.output = output;
     this.style  = style;
 }
 public BuildMessageErrorFormatDefinition(IStyleManager styleManager)
     : base(styleManager)
 {
 }
 public NpmMessageErrorFormatDefinition(IStyleManager styleManager) : base(styleManager)
 {
 }
 public BuildResultSucceededFormatDefinition(IStyleManager styleManager)
     : base(styleManager)
 {
 }
예제 #29
0
 public MUIForm(IStyleManager manager)
     : this(manager, new Size(600, 600))
 {
 }
 public DebugExceptionFormatDefinition(IStyleManager styleManager) : base(styleManager)
 {
 }
예제 #31
0
 public DebugTraceWarningFormatDefinition(IStyleManager styleManager) : base(styleManager)
 {
 }
 public DebugTraceErrorFormatDefinition(IStyleManager styleManager)
     : base(styleManager)
 {
 }