Ejemplo n.º 1
0
        public override void DoDispose()
        {
            if (_context != null)
            {
                _context.ChangedModified -= new FireChangedModified(OnNotyfyModified);
                if (_weekControl != null)
                {
                    _weekControl.Context = null;
                }
                if (_dayControl != null)
                {
                    _dayControl.Context = null;
                }

                _context = null;
            }

            FormEmployeeWorkingModelApplied.HideForm();

            base.DoDispose();
        }
Ejemplo 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);
 }
Ejemplo n.º 3
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);
 }
Ejemplo n.º 4
0
        public override void DoDispose()
        {
            if (_context != null)
            {
                _context.ChangedModified -= new FireChangedModified(OnNotyfyModified);
                if (_weekControl != null)
                {
                    _weekControl.Context = null;
                }
                if (_dayControl != null)
                {
                    _dayControl.Context = null;
                }

                _context = null;
            }

            FormEmployeeWorkingModelApplied.HideForm();

            base.DoDispose();
        }