Exemplo n.º 1
0
 public UCTimeRecording()
 {
     InitializeComponent();
     if (!IsDesignMode)
     {
         _OnChangedToDailyView = new ChangedToDailyView(m_WeekControl_EventChangedToDailyView);
         _context = new WorldRecordingContext(
             ClientEnvironment.LongTimeAbsenceService,
             ClientEnvironment.AbsenceService,
             ClientEnvironment.WorkingModelService,
             ClientEnvironment.ColouringService,
             ClientEnvironment.EmployeeService,
             ClientEnvironment.StoreService,
             ClientEnvironment.WorkingTimePlanningService,
             ClientEnvironment.AbsenceTimePlanningService,
             ClientEnvironment.WorkingTimeRecordingService,
             ClientEnvironment.AbsenceTimeRecordingService);
         _context.ChangedModified += new FireChangedModified(OnNotyfyModified);
         ShowWeeklyView(true);
     }
     Disposed += new EventHandler(UCTimeRecording_Disposed);
 }
Exemplo n.º 2
0
 public UCTimeRecording()
 {
     InitializeComponent();
     if (!IsDesignMode)
     {
         _OnChangedToDailyView = new ChangedToDailyView(m_WeekControl_EventChangedToDailyView);
         _context = new WorldRecordingContext(
             ClientEnvironment.LongTimeAbsenceService,
             ClientEnvironment.AbsenceService,
             ClientEnvironment.WorkingModelService,
             ClientEnvironment.ColouringService,
             ClientEnvironment.EmployeeService,
             ClientEnvironment.StoreService,
             ClientEnvironment.WorkingTimePlanningService,
             ClientEnvironment.AbsenceTimePlanningService,
             ClientEnvironment.WorkingTimeRecordingService,
             ClientEnvironment.AbsenceTimeRecordingService);
         _context.ChangedModified += new FireChangedModified(OnNotyfyModified);
         ShowWeeklyView(true);
     }
     Disposed += new EventHandler(UCTimeRecording_Disposed);
 }