Esempio n. 1
0
        private void btnOrphanQualification_Click(object sender, RoutedEventArgs e)
        {
            var o = (Orphan)this.DataContext;
            QualificationContainerWindow w = new QualificationContainerWindow(Qualification.QualificationPersonType.Orphan);

            w.PersonID = o.OrphanID;
            w.ShowDialog();
        }
        private void btnQualification_Click(object sender, RoutedEventArgs e)
        {
            var fp = (FamilyPerson)this.DataContext;

            if (fp.FamilyPersonID.HasValue)
            {
                QualificationContainerWindow w = new QualificationContainerWindow(Qualification.QualificationPersonType.Child);
                w.PersonID = fp.FamilyPersonID;
                w.ShowDialog();
            }
        }
Esempio n. 3
0
        private void btnQualification_Click(object sender, RoutedEventArgs e)
        {
            Parent p = (Parent)this.DataContext;

            if (p != null && p.ParentrID != null)
            {
                QualificationContainerWindow q = new QualificationContainerWindow((p.Gender == "ذكر") ? Qualification.QualificationPersonType.Father : Qualification.QualificationPersonType.Mother);
                q.PersonID = p.ParentrID;
                q.ShowDialog();
            }
            else
            {
                MyMessageBox.Show("لم يتم إدخال بيانات الوالد بعد");
            }
        }