Tim,
>in App.cs I create a reference to the factory so it is created
>Factory factory = mmAppBase.Factory;
Actually, the factory is automatically instantiated for you at the MM .NET level in mmAppBase when the application object is first instantiated.
>I add a property to the app.cs file
>public RfidReaderBase Rfid
>{
> get
> {
> if (rfid == null)
> {
> rfid = factory.CreateRfidReader();
> rfid.Initialize();
> }
> return rfid;
> }
>}
>private RfidReaderBase rfid;
That'll do it!
Best Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com