Exemple #1
0
 /// <summary>
 /// Creates a new instance of the <see cref="CsModelStore"/> and loads all the data for all the categories.
 /// </summary>
 /// <param name="allModels">All the model data to be added to the store.</param>
 public CsModelStore(Dictionary <string, IEnumerable <ICsModel> > allModels)
 {
     _model  = null;
     _models = allModels ?? new Dictionary <string, IEnumerable <ICsModel> >();
 }
Exemple #2
0
 /// <summary>
 /// Creates a new instance of the <see cref="CsModelStore"/> and initializes the store for data to be added.
 /// </summary>
 public CsModelStore()
 {
     _model  = null;
     _models = new Dictionary <string, IEnumerable <ICsModel> >();
 }
Exemple #3
0
 /// <summary>
 /// Creates a new instance of the <see cref="CsModelStore"/> and sets a single model in the store.
 /// </summary>
 /// <param name="model">The model to be added to the store.</param>
 public CsModelStore(ICsModel model)
 {
     _model = model;
 }
Exemple #4
0
 /// <summary>
 /// Sets the single model to be shared with a factory.
 /// </summary>
 /// <param name="model">Target model to be used in a factory.</param>
 public void SetModel(ICsModel model)
 {
     _model = model;
 }