Ejemplo n.º 1
0
        public override void Add()
        {
            using (FormLongTimeAbsence newAbsenceForm = new FormLongTimeAbsence())
            {
                LongTimeAbsence newAbsence = new LongTimeAbsence();
                newAbsenceForm.Entity = newAbsence;

                if (newAbsenceForm.ShowDialog() == DialogResult.OK)
                {
                    m_absenceList.Add(newAbsence);
                }
                UpdateButtonState();
            }
        }
Ejemplo n.º 2
0
        public override void Add()
        {
            using (FormLongTimeAbsence newAbsenceForm = new FormLongTimeAbsence())
            {
                LongTimeAbsence newAbsence = new LongTimeAbsence();
                newAbsenceForm.Entity = newAbsence;

                if (newAbsenceForm.ShowDialog() == DialogResult.OK)
                {
                    m_absenceList.Add(newAbsence);
                }
                UpdateButtonState();
            }
        }
Ejemplo n.º 3
0
        public override void Edit()
        {
            LongTimeAbsence absence = FocusedEntity;

            if (absence != null)
            {
                using (FormLongTimeAbsence newAbsenceForm = new FormLongTimeAbsence())
                {
                    newAbsenceForm.Entity = absence;

                    if (newAbsenceForm.ShowDialog() == DialogResult.OK)
                    {
                        m_absenceList.SetEntity(absence);
                    }
                }
                UpdateButtonState();
            }
        }
Ejemplo n.º 4
0
        public override void Edit()
        {
            LongTimeAbsence absence = FocusedEntity;
            if (absence != null)
            {
                using (FormLongTimeAbsence newAbsenceForm = new FormLongTimeAbsence())
                {
                    newAbsenceForm.Entity = absence;

                    if (newAbsenceForm.ShowDialog() == DialogResult.OK)
                    {
                        m_absenceList.SetEntity(absence);
                    }
                }
                UpdateButtonState();
            }
        }