private void AddEditBookingNote_Load(object sender, EventArgs e)
        {
            var unitOfWork = new UnitOfWork();

            if(presetID!=null)
            {
                WorkingNote = unitOfWork.PresetNoteRepository.GetByID(presetID.Value);

            }
            if(WorkingNote !=null)
            {
                tbNote.Text = WorkingNote.Name;
                nmudSeverity.Value = WorkingNote.Severity;

            }
            stylesSheetManager1.ApplyStyles();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            var unitOfWork = new UnitOfWork();
            if (WorkingNote == null)
            {
                WorkingNote = new PresetNote();
                    WorkingNote.Name = tbNote.Text;
                    WorkingNote.Severity = (int)nmudSeverity.Value;
                    unitOfWork.PresetNoteRepository.Insert(WorkingNote);

            }
            else
                {

                    WorkingNote.Name = tbNote.Text;
                    WorkingNote.Severity = (int)nmudSeverity.Value;
                    if(presetID!=null)
                    unitOfWork.PresetNoteRepository.Update(WorkingNote);

            }
            unitOfWork.Save();
            DialogResult = DialogResult.OK;
        }