private void buttonRelatedEvents_Click(object sender, EventArgs e) { EventRelatedList d = new EventRelatedList(); EventRelatedListController dc = new EventRelatedListController(d); d.ViewContainer = Controller.ViewContainer; d.EventObject = EventObject; d.FillRelativeEvents(); if (Controller.ViewContainer != null) { Controller.ViewContainer.AddControl(dc, GVControlAlign.Fill); } if (OnButtonRelated != null) { OnButtonRelated(this, e); } }
public EventRelatedListController(EventRelatedList v) { View = v; v.Controller = this; }