コード例 #1
0
 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();
        }