/// ////////////////////////////////////////////// public void Init(CPlanificationTache planification) { if (m_cmbTypePlanification.ListDonnees == null) { FillListePlanificationsPossibles(); } if (planification == null) { return; } m_tableTypePlanifToAlloue[planification.GetType()] = planification; if (m_panel != null) { m_panel.MajChamps(); m_panelSousFormulaire.Controls.Remove(m_panel); m_panel.Visible = false; m_panel.Dispose(); m_panel = null; } Type tpPanel = CPanelPlanficationIntervention.GetTypePanelToEdit(planification.GetType()); if (tpPanel != null) { m_panel = (CPanelPlanficationIntervention)Activator.CreateInstance(tpPanel); m_panel.Parent = m_panelSousFormulaire; m_panel.Dock = DockStyle.Top; m_panel.CreateControl(); m_panel.InitChamps(planification); m_panel.LockEdition = LockEdition; } if (m_panel != null) { m_panel.BackColor = BackColor; } CPlanificationTache.CInfoTypePlanification info = new CPlanificationTache.CInfoTypePlanification(planification.GetType(), ""); if (m_cmbTypePlanification.SelectedValue == null || !m_cmbTypePlanification.SelectedValue.Equals(info)) { m_cmbTypePlanification.SelectedValue = info; } }
public static void Autoexec() { CPanelPlanficationIntervention.RegisterPanelPlanification(typeof(CPlanificationTacheMensuelleJourSemaine), typeof(CPanelPlanificationInterventionMensuelleJourSemaine)); }
public static void Autoexec() { CPanelPlanficationIntervention.RegisterPanelPlanification(typeof(CPlanificationTacheQuotidienne), typeof(CPanelPlanificationInterventionQuotidienne)); }
public static void Autoexec() { CPanelPlanficationIntervention.RegisterPanelPlanification(typeof(CPlanificationTacheFrequente), typeof(CPanelPlanificationInterventionFrequente)); }
public static void Autoexec() { CPanelPlanficationIntervention.RegisterPanelPlanification(typeof(CPlanificationTacheHebdomadaire), typeof(CPanelPlanificationInterventionHebdomadaire)); }