Exemplo n.º 1
0
        /// <summary>
        /// New Event
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void button1_Click(object sender, EventArgs e)
        {
            AskEventType           d  = new AskEventType();
            AskEventTypeController dc = new AskEventTypeController(d);

            if (Controller.ViewContainer != null)
            {
                d.OnButtonOK     += new TBButtonPressed(onNewEventOK);
                d.OnButtonCancel += new TBButtonPressed(onNewEventCancel);
                dc.ShowInContainer(Controller.ViewContainer, GVControlAlign.Center);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// OK callback from New Event dialog
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void onNewEventOK(object sender, EventArgs e)
        {
            if (sender is AskEventType)
            {
                AskEventType aet = sender as AskEventType;

                GCFestivalBase b = aet.SelectedObject;
                b.Text = "(Untitled)";
                if (b != null)
                {
                    EventDetails           d  = new EventDetails();
                    EventDetailsController dc = new EventDetailsController(d);
                    dc.ViewContainer   = Controller.ViewContainer;
                    d.EventObject      = b;
                    d.OnButtonOK      += new TBButtonPressed(onNewEventDoneOK);
                    d.OnButtonCancel  += new TBButtonPressed(onNewEventDoneCancel);
                    d.OnButtonRelated += new TBButtonPressed(onNewEventDoneRelated);

                    dc.ShowInContainer(Controller.ViewContainer, GVControlAlign.Fill);
                }
            }
        }
Exemplo n.º 3
0
 public AskEventTypeController(AskEventType v)
 {
     View         = v;
     v.Controller = this;
 }