示例#1
0
        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);
            }
        }
示例#2
0
 public EventRelatedListController(EventRelatedList v)
 {
     View         = v;
     v.Controller = this;
 }