Ejemplo n.º 1
0
 private void btnAddTask_Click(object sender, EventArgs e)
 {
     try
     {
         Task task = new Task(PROF_IT.Common.Enumerations.TypeForm.NewForm);
         if (task.ShowDialog() == DialogResult.OK)
         {
             TasksMember.Add(task.TaskMember);
             FindAll();
         }
     }
     catch (System.Exception excepion1)
     {
         System.Exception thisException = excepion1;
         Management.ShowException(thisException);
     }
 }
Ejemplo n.º 2
0
 private void gdvTask_DoubleClick(object sender, EventArgs e)
 {
     try
     {
         GridView view = (GridView)sender;
         TaskObject taskObj = (TaskObject)view.GetRow(view.FocusedRowHandle);
         new TIS.BL.Internal.Task().AddChilds(taskObj);
         Task task = new Task(PROF_IT.Common.Enumerations.TypeForm.PropertyForm, taskObj);
         task.ShowDialog();
         FindAll();
     }
     catch (System.Exception excepion1)
     {
         System.Exception thisException = excepion1;
         Management.ShowException(thisException);
     }
 }