public static void RegisterMe() { ButtonFactory.Register(typeof(ClassToMakeButtonFor2), new ButtonFactory2()); }