Пример #1
0
        private static void updatePreferenceAndClone(ref PreferencesRow p)
        {
            // p.EndEdit();
            // p.Class = materiaBox.Text;
            p.DateTime = DateTime.Now;
            // p.AYearID = ayearID;
            p.Year = p.DateTime.Year;

            DB.TAM.PreferencesTableAdapter.Update(p);
            PreferencesRow clone = Tables.CloneARow(p.Table, p) as DB.PreferencesRow;

            p      = clone;
            p.Done = true;
            DB.TAM.PreferencesTableAdapter.Update(p);
        }