void SaveDocument() { isDirty = false; CancelButton.IsEnabled = false; SaveButton.IsEnabled = false; DatabaseHandler.ChangeDocument(id, DocumentName.Text, (int)DocTypeCombo.SelectedValue); originalName = DocumentName.Text; originalDocType = (int)DocTypeCombo.SelectedValue; }