Esempio n. 1
0
 public EnvironmentFileHandler(IFileHandler <Model.SPSD> control)
 {
     _control = control;
     if (_self != null)
     {
         throw new ArgumentException("EnvironmentFileHandler is a Singleton and can only instantiated once.");
     }
     _self = this;
     if (_control == null)
     {
         throw new NullReferenceException(
                   "A null object was passed to the EnvironmentFileHandler. Valid objects are of type IFileHandler<Model.SPSD>");
     }
 }
 public EnvironmentFileHandler(IFileHandler<Model.SPSD> control)
 {
     _control = control;
     if (_self != null)
     {
         throw new ArgumentException("EnvironmentFileHandler is a Singleton and can only instantiated once.");
     }
     _self = this;
     if (_control == null)
     {
         throw new NullReferenceException(
             "A null object was passed to the EnvironmentFileHandler. Valid objects are of type IFileHandler<Model.SPSD>");
     }
 }