예제 #1
0
 private void listViewScheduleTasks_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         if (listViewScheduleTasks.FocusedItem.Bounds.Contains(e.Location) == true)
         {
             ListViewItem item = listViewScheduleTasks.GetItemAt(e.X, e.Y);
             if (item != null)
             {
                 TaskHeader th = GetTaskSchedulerHeader(item);
                 ScheduleDetail frm = new ScheduleDetail(th.ScheduleID);
                 var val = frm.ShowDialog(this);
             }
         }
     }
 }
예제 #2
0
 private void btnNewSchedule_Click(object sender, EventArgs e)
 {
     ScheduleDetail frm = new ScheduleDetail();
     var val = frm.ShowDialog(this);
     //MessageBox.Show(val.ToString());
     if (val == System.Windows.Forms.DialogResult.OK)
         LoadScheduleHeaders(true);
 }