private void btnSalva_Click(object sender, EventArgs e) { var html = editorForm1.GetHtmlText(); var plainText = editorForm1.GetPlainText(); var subj = tbSubject.Text; if (!string.IsNullOrWhiteSpace(CurrentMailId)) { AppRepo.UpdateMail(CurrentMailId, subj, html, plainText); } }