Esempio n. 1
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="spu"></param>
        public void Add(ISPU spu)
        {
            if (spu == null)
            {
                throw new ArgumentNullException("spu");
            }

            // TODO: exist
            //
            this.SPUCollection.Add(spu);
        }
Esempio n. 2
0
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        public IStation Create(ISPU spu)
        {
            if (spu == null)
            {
                throw new ArgumentNullException("spu");
            }

            object obj = Activator.CreateInstance(this.Type);
            IStation st = (IStation)obj;
            st.Spu = spu;
            st.StationType = this;
            return st;
        }
Esempio n. 3
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="spu"></param>
        private void VerifySPU(ISPU spu)
        {
            if (spu == null)
            {
                throw new ArgumentNullException("spu");
            }

            VerifyNotNull(spu.StationFactory, "spu.StationFactory");
            VerifyNotNull(spu.StationPersister, "spu.StationPersister");
            VerifyNotNull(spu.StationSourceProvider, "spu.StationSourceProvider");
            VerifyNotNull(spu.StationType, "spu.StationType");
            VerifyNotNull(spu.StationUI, "spu.StationUI");
        }
Esempio n. 4
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="spu"></param>
 protected StationFactoryBase(ISPU spu)
 {
     this.Spu = spu;
 }
Esempio n. 5
0
 public TStationFactory(ISPU spu)
     : base(spu)
 {
 }
Esempio n. 6
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="spu"></param>
 public StationUI(ISPU spu)
 {
     this.Spu = spu;
 }