public static void PlayEmployeeWeeks(IPlanningContext context, List<EmployeeWeek> listEmployee)
 {
     if (_instance == null)
         _instance = new FormEmployeeWorkingModelApplied();
     _instance.PlayWorkingModel(context, listEmployee);
     _instance.ShowOrHide();
 }
示例#2
0
 public static void PlayEmployeeWeeks(IPlanningContext context, List <EmployeePlanningWeek> listEmployee)
 {
     if (_instance == null)
     {
         _instance = new FormEmployeeWorkingModelApplied();
     }
     _instance.PlayWorkingModel(context, listEmployee);
     _instance.ShowOrHide();
 }
示例#3
0
        public override void DoDispose()
        {
            if (_planningContext != null)
            {
                _planningContext.OnChangedModified -= new FireChangedModified(_planningContext_OnChangedModified);
            }

            FormEmployeeWorkingModelApplied.HideForm();

            base.DoDispose();
        }
示例#4
0
        public override void SomethingDoBeforeDispose()
        {
            if (_context != null)
            {
                _context.QuestionToSaveAndSave();
            }

            FormEmployeeWorkingModelApplied.HideForm();

            base.SomethingDoBeforeDispose();
        }
示例#5
0
        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();
        }
示例#6
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();
        }