Пример #1
0
        private void FormMain_Load(object sender, System.EventArgs e)
        {
            store = new FileStore <Task>();
            FilterTasks(DateTime.Today);

            timerNotification.Enabled = true;
        }
Пример #2
0
 public AsyncReportGenerationService(
     IBaseStore taskStore,
     IAsyncReportGenerator reportGenerator)
 {
     Log              = LogManager.GetLogger("ReportGeneration");
     _taskStore       = taskStore;
     _reportGenerator = reportGenerator;
 }
Пример #3
0
 protected BaseManager(IBaseStore <TEntity> baseStore)
 {
     if (baseStore == null)
     {
         throw new ArgumentNullException("baseStore");
     }
     BaseStore = baseStore;
 }
Пример #4
0
        private void FormMain_Load(object sender, System.EventArgs e)
        {
            store = new FileStore <Task>();
            var objs = store.GetAll();

            taskList.Clear();

            foreach (Task task in objs)
            {
                if (task.StartDate.Day <= calendar.TodayDate.Day && task.Deadline.Day >= calendar.TodayDate.Day)
                {
                    AddTask(task);
                }
            }
        }
 public ResumeManager(IBaseStore <ResumeApply> baseStore)
     : base(baseStore)
 {
 }
Пример #6
0
        public void FormMain_Load(object sender, System.EventArgs e)
        {
            store = new FileStore <Task>();

            Filter(DateTime.Today);
        }
Пример #7
0
 public BaseService(IBaseStore <T> baseStore)
 {
     _baseStore = baseStore;
 }
Пример #8
0
 public BaseService(IBaseStore <T> baseStore)
 {
     this.baseStore = baseStore;
 }