예제 #1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            duration = null;
            DurationDetailForm detailForm = new DurationDetailForm(duration);

            detailForm.FormClosed += new FormClosedEventHandler(DetailForm_Closed);
            detailForm.ShowDialog();
        }
예제 #2
0
 private void btnViewDetail_Click(object sender, EventArgs e)
 {
     if (duration != null)
     {
         DurationDetailForm detailForm = new DurationDetailForm(duration);
         detailForm.FormClosed += new FormClosedEventHandler(DetailForm_Closed);
         detailForm.ShowDialog();
     }
 }