Example #1
0
 private void btn_new_Click(object sender, EventArgs e)
 {
     NewEvent form = new NewEvent(ev.ev);
     DialogResult result = form.ShowDialog();
     if (result == DialogResult.OK)
     {
         ev.ev = form.event_data;
     }
 }
Example #2
0
 private void btn_edit_event_Click(object sender, EventArgs e)
 {
     NewEvent form = new NewEvent(action_data.event_data);
     DialogResult result = form.ShowDialog();
     if (result == DialogResult.OK)
     {
         action_data.event_data = form.event_data;
         SetData(action_data);
     }
 }
Example #3
0
 private void btn_event_Click(object sender, EventArgs e)
 {
     CreateEvent cform = new CreateEvent();
     DialogResult result = cform.ShowDialog();
     EventData ev = null;
     if (result == DialogResult.OK)
     {
         ev = cform.ev;
         NewEvent nform = new NewEvent(ev);
         result = nform.ShowDialog();
         if (result == DialogResult.OK)
         {
             action_data.event_data = nform.event_data;
             SetData(action_data);
         }
     }
 }