/// <summary> /// Initialize controls by registering for View Error events /// and passing through our Catalog instance. /// </summary> /// <param name="c">Control to initialize</param> /// private void View_Init(ViewControl c) { c.View_Alert += new EventHandler(View_Error); c.Catalog = Catalog; // ISSUE: Why isn't control injection working? }
/// <summary> /// Initialize the control to use the standard View_Alert event handerl. /// </summary> /// <param name="c">Control to register</param> /// protected void InitView(ViewControl c) { c.View_Alert += new EventHandler(View_Alert_Handler); // Bubble event c.Profile = Profile; }