Exemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 private DomainFacade(IPAccountingConfig pConfig, IPlugin pPlugin)
 {
     cPlugin         = pPlugin;
     cRecordList     = new List <AccountingItem>();
     cObserverList   = new List <IObserver>();
     cInfrastructure = InfrastructureFacade.getInstance(pConfig, pPlugin, ref cRecordList);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Create single instance
        /// </summary>
        /// <returns></returns>
        public static InfrastructureFacade getInstance(IPAccountingConfig pConfig, IPlugin pPlugin, ref List <AccountingItem> pRecordList)
        {
            if (cInstance == null)
            {
                cInstance = new InfrastructureFacade(pConfig, pPlugin, pRecordList);
            }

            return(cInstance);
        }