private void buttonSave_Click(object sender, EventArgs e) { if (IsSongChanged == true) { mp3Record = new MP3Record(); mp3Record.Genre = comboBoxGenre.Text; mp3Record.Catalog = comboBoxCatalog.Text; mp3Record.Album = textBoxAlbum.Text; mp3Record.Artist = textBoxInterpret.Text; mp3Record.Titel = textBoxTitel.Text; mp3Record.Path = textBoxPath.Text; mp3Record.FileName = textBoxFilename.Text; bool result = DataGetSet.EditSaveSongChanges(_id, mp3Record); } if (IsFileInfoChanged == true) { mp3Record = new MP3Record(); mp3Record.FileSize = Convert.ToInt32(textBoxFilesize.Text); mp3Record.FileDate = Convert.ToDateTime(textBoxFiledate.Text); mp3Record.Duration = TimeSpan.Parse(textBoxDuration.Text); bool result = DataGetSet.EditSaveFileinfoChanges(_id, mp3Record); } if (IsSongInfoChanged == true) { mp3Record = new MP3Record(); mp3Record.IsSample = chechBoxSampler.Checked; mp3Record.Error = checkBoxError.Checked; mp3Record.Hide = checkBoxHide.Checked; mp3Record.Comment = textboxComment.Text; mp3Record.Media = Convert.ToInt32(textBoxMedia.Text); } #region Zeuch //if (textBoxTitel.Text != (string)textBoxTitel.Tag) //{ //} //foreach( c In Me) //{ // if ( c.BackColor = +HC0C0FF ) // { // // Textfeld wurde bearbeitet; // if ( IsFieldChanged(c) ) // { // SaveChanges c; // } // } //} #endregion }