Exemplo n.º 1
0
        //-------------------------------------------------------------------------
        protected override CResultAErreur MyInitChamps()
        {
            CResultAErreur result = base.MyInitChamps();

            if (!result)
            {
                return(result);
            }

            AffecterTitre(SchemaReseau.DescriptionElement);

            m_cmbTypeSchemaReseau.Init <CTypeSchemaReseau>(
                "Libelle",
                false);

            string strType;
            string strId;
            string strIdParent;

            if (SchemaReseau.TypeSchemaReseau != null)
            {
                strType = SchemaReseau.TypeSchemaReseau.Libelle.ToString();
            }
            if (SchemaReseau != null)
            {
                strId = SchemaReseau.Id.ToString();
            }
            if (SchemaReseau.SchemaParent != null)
            {
                strIdParent = SchemaReseau.SchemaParent.Id.ToString();
            }
            m_cmbTypeSchemaReseau.ElementSelectionne = SchemaReseau.TypeSchemaReseau;

            m_chkSymboleImage.Checked = SchemaReseau.UtiliseImageReduite;

            m_cmbModeOperationnel.FillWithEnumALibelle(typeof(CModeOperationnelSchema));
            m_cmbModeOperationnel.SelectedValue = SchemaReseau.CodeModeOperationnel;

            string strInfo = "";

            if (SchemaReseau.SchemaParent != null)
            {
                strInfo = I.T("Schema parent : @1|20134", SchemaReseau.SchemaParent.Libelle);
            }
            if (SchemaReseau.SiteApparenance != null)
            {
                strInfo = I.T("In Site : @1|20135", SchemaReseau.SiteApparenance.Libelle);
            }
            m_lblInfoSchema.Text = strInfo;

            return(result);
        }
Exemplo n.º 2
0
 private void InitComboPeriodicite()
 {
     m_cmbPeriodicite.FillWithEnumALibelle(typeof(CEchelleTemps));
     m_cmbPeriodicite.SelectedValue = new CEchelleTemps(EEchelleTemps.Annee).CodeInt;
 }