private DomainFacade(IPlugin pPlugin) { cPlugin = pPlugin; cRecordList = new BindingList <FWRule>(); cObservers = new List <IObserver>(); cInfrastructure = InfrastructureFacade.getInstance(pPlugin); }
/// <summary> /// Create single instance /// </summary> /// <returns></returns> public static InfrastructureFacade getInstance(IPlugin pPlugin) { if (cInstance == null) { cInstance = new InfrastructureFacade(pPlugin); } return(cInstance); }