Ejemplo n.º 1
0
        private void gvEvent_DoubleClick(object sender, EventArgs e)
        {
            Event @event = bdsEvent.Current as Event;

            if (@event == null)
            {
                return;
            }
            UpdateEventForm form = new UpdateEventForm(@event);

            form.ShowDialog();
        }
Ejemplo n.º 2
0
 private void toolStripMenuItem2_Click(object sender, EventArgs e)
 {
     if (this.updateEventForm == null)
     {
         this.updateEventForm             = new UpdateEventForm();
         this.updateEventForm.MdiParent   = this;
         this.updateEventForm.FormClosed += new FormClosedEventHandler(this.updateEvent_FormClosed);
         this.updateEventForm.Show();
     }
     else
     {
         this.updateEventForm.Activate();
     }
 }
Ejemplo n.º 3
0
        private void updateEvent_Click(object sender, EventArgs e)
        {
            DataGridViewRow row = eventGrid.CurrentRow;

            int event_id = int.Parse(row.Cells[0].Value.ToString());
            int proj_id  = int.Parse(row.Cells[1].Value.ToString());
            int sch_no   = int.Parse(row.Cells[3].Value.ToString());

            Event evnt = getEventRow(proj_id, sch_no, event_id);

            UpdateEventForm uef = new UpdateEventForm(evnt);

            uef.ShowDialog();

            eventGrid.DataSource = getEvents();
        }
Ejemplo n.º 4
0
 private void updateEvent_FormClosed(object sender, FormClosedEventArgs e)
 {
     this.updateEventForm = null;
 }
Ejemplo n.º 5
0
 private void toolStripMenuItem2_Click(object sender, EventArgs e)
 {
     if (this.updateEventForm == null)
     {
         this.updateEventForm = new UpdateEventForm();
         this.updateEventForm.MdiParent = this;
         this.updateEventForm.FormClosed += new FormClosedEventHandler(this.updateEvent_FormClosed);
         this.updateEventForm.Show();
     }
     else
     {
         this.updateEventForm.Activate();
     }
 }
Ejemplo n.º 6
0
 private void updateEvent_FormClosed(object sender, FormClosedEventArgs e)
 {
     this.updateEventForm = null;
 }