/// <summary> /// Méthode interne. /// Initialiser /// </summary> /// <param name="SwCorps"></param> /// <param name="Piece"></param> /// <returns></returns> internal Boolean Init(ePiece Piece) { Log.Methode(cNOMCLASSE); if ((Piece != null) && Piece.EstInitialise && (Piece.Contient(TypeCorps_e.cTole))) { _Piece = Piece; _EstInitialise = true; } else { Log.Message("!!!!! Erreur d'initialisation"); } return _EstInitialise; }
/// <summary> /// Méthode interne. /// Initialiser l'objet ExtCorps. /// </summary> /// <param name="SwCorps"></param> /// <param name="Corps"></param> /// <returns></returns> internal Boolean Init(eCorps Corps) { Log.Methode(cNOMCLASSE); if ((Corps != null) && Corps.EstInitialise && (Corps.TypeDeCorps == TypeCorps_e.cTole)) { _Corps = Corps; _Piece = Corps.Piece; _EstInitialise = true; } else { Log.Message("!!!!! Erreur d'initialisation"); } return _EstInitialise; }
/// <summary> /// Méthode interne. /// Initialiser /// </summary> /// <param name="SwCorps"></param> /// <param name="Tole"></param> /// <returns></returns> internal Boolean Init(eTole Tole) { Log.Methode(cNOMCLASSE); if ((Tole != null) && Tole.EstInitialise) { _Tole = Tole; _Piece = _Tole.Corps.Piece; _EstInitialise = true; } else { Log.Message("!!!!! Erreur d'initialisation"); } return _EstInitialise; }