public static void PlayEmployeeWeeks(IPlanningContext context, List<EmployeeWeek> listEmployee) { if (_instance == null) _instance = new FormEmployeeWorkingModelApplied(); _instance.PlayWorkingModel(context, listEmployee); _instance.ShowOrHide(); }
public static void PlayEmployeeWeeks(IPlanningContext context, List <EmployeePlanningWeek> listEmployee) { if (_instance == null) { _instance = new FormEmployeeWorkingModelApplied(); } _instance.PlayWorkingModel(context, listEmployee); _instance.ShowOrHide(); }
public override void DoDispose() { if (_planningContext != null) { _planningContext.OnChangedModified -= new FireChangedModified(_planningContext_OnChangedModified); } FormEmployeeWorkingModelApplied.HideForm(); base.DoDispose(); }
public override void SomethingDoBeforeDispose() { if (_context != null) { _context.QuestionToSaveAndSave(); } FormEmployeeWorkingModelApplied.HideForm(); base.SomethingDoBeforeDispose(); }
public override void SomethingDoBeforeDispose() { if (_planningContext != null) { _planningContext.QuestionToSaveAndSave(); _planningContext.OnChangedModified -= new FireChangedModified(_planningContext_OnChangedModified); _planningContext.OnChangedStoreOrWorld -= new FireChangedStoreOrWorld(m_planningContext_OnChangedStoreOrWorld); } FormEmployeeWorkingModelApplied.HideForm(); base.SomethingDoBeforeDispose(); }
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(); }