public void CambiaStatoDB(string No, string stato) { TestataDIBA testata = EstraiTestataDIBA(No); if (testata == null) { throw new Exception(string.Format("Distinta {0} non trovata", No)); } if (testata.Status != stato) { testata.Status = stato; _nav.UpdateObject(testata); Salva(); } }