private void btnOK_Click(object sender, EventArgs e)
 {
     if (this.ValidateInput())
     {
         if (this.workLog.TaskID.Length > 0 && this.workLog.WorkLogID.Length > 0 && this.workLog.TaskID != this.comboJiraTask.Text)
         {
             JiraInterface.DeleteWorkLog(this.workLog.TaskID, this.workLog.WorkLogID);
         }
         this.DialogResult = System.Windows.Forms.DialogResult.OK;
         this.Close();
     }
 }
Beispiel #2
0
 public void DeleteJira()
 {
     if (this.WorkLog.WorkLogID.Length > 0)
     {
         try
         {
             JiraInterface.DeleteWorkLog(this.WorkLog.TaskID, this.WorkLog.WorkLogID);
         }
         catch
         {
             System.Windows.Forms.MessageBox.Show("There was an error when deleteing the work log. Continuing anyway.", "Error Deleting Work Log!", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
         }
     }
 }