public static MissingLicensePlateList CreateIfNotExistsAndGetInstance(IMissingPlateClient mlpClient, IExceptionEventObservable parent) { lock (mlpLock) { if (null == mlpList || mlpList.IsDisposed) { mlpList = new MissingLicensePlateList(mlpClient, parent); } return(mlpList); } }
private MissingLicensePlateList(IMissingPlateClient mlpClient, IExceptionEventObservable parent) { this.mlpClient = mlpClient; this.parent = parent; InitializeComponent(); }