private void btnDone_Click(object sender, EventArgs e) { NoteObject noteObj = new NoteObject(); AddData(noteObj); if (Validation(noteObj) == "true") { if (noteController.AddNoteWithObject(noteObj) == false) { warning.Message = "Có lỗi, vui lòng thử lại."; warning.ShowDialog(); } else { success.Message = "Ghi chú đã được thêm thành công."; success.ShowDialog(); } } else { warning.Message = Validation(noteObj); warning.ShowDialog(); } }