Ejemplo n.º 1
0
 /// <summary>
 /// Saves changelog entry into changelog. Overwrites an old one in case it was supposed to be edited.
 /// If an old one was deleted previously, changelog entry is added as a new entry.
 /// </summary>
 private void saveEntryButt_Click(object sender, EventArgs e)
 {
     if (editedID == -1 || isEditedDeleted)
     {
         changelog.AddElement(descriptionBox.Text, pictureURLBox.Text, dateBox.Value.ToString(dateBox.CustomFormat), headingBox.Text);
     }
     else
     {
         changelog.UpdateElement(editedID, descriptionBox.Text, pictureURLBox.Text, dateBox.Value.ToString(dateBox.CustomFormat), headingBox.Text);
     }
     UpdateListView();
 }