示例#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;
     }
 }
示例#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);
     }
 }
示例#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);
         }
     }
 }