public MainWindow() { InitializeComponent(); DroidFactory factory = new DroidFactory(new List<Type>() { typeof(R2D2), typeof(C3PO), }); factory.DroidCreated += new EventHandler<DroidCreatedArg>(factory_DroidCreated); factory.Start(); Console.ReadKey(); }
public DroidFactory() { instance = this; }