Exemplo n.º 1
0
 /// <summary>
 /// Create a configurable article.
 /// </summary>
 /// <param name="code">The identifier code of the article.</param>
 /// <param name="schema">The schema of the configuration properties.</param>
 public Article(string code, ArtSchema schema)
 {
     this._code         = code;
     this._schema       = schema;
     this._configurable = true;
     SetDefaultValues();
 }
Exemplo n.º 2
0
 /// <summary>
 /// Create a non-configurable article.
 /// </summary>
 /// <param name="code">The identifier code of the article.</param>
 public Article(string code)
 {
     this._code         = code;
     this._configurable = false;
     this._schema       = null;
     SetDefaultValues();
 }