Exemplo n.º 1
0
 private void BtnSave_Click(object sender, EventArgs e)
 {
     if (!string.IsNullOrWhiteSpace(txtNotes.Text))
     {
         SupervisorNotesModel editSupervisorNotes = new SupervisorNotesModel()
         {
             Date     = dateTimePicker1.Value.Date,
             Comments = txtNotes.Text
         };
         PrepAndPaintDB.SaveSuperVisorNotes(editSupervisorNotes);
         this.DialogResult = DialogResult.OK;
         Close();
     }
     else
     {
         MessageBox.Show("You didn't enter anything", "Error");
     }
 }