Exemplo n.º 1
0
 private void btnSave_Click(object sender, EventArgs e)
 {
     Quatre quatre = new Quatre();
     quatre.Families = this.families;
     quatre.Individuals = this.individuals;
     quatre.SaveXML();
     MessageBox.Show(this, "Saved successfully", "Quatre Family Editor", MessageBoxButtons.OK, MessageBoxIcon.Information);
 }
Exemplo n.º 2
0
 public formFamily(Form parentForm, Quatre quatre, int familyId)
 {
     this.parentform = parentForm;
     this.familyid = familyId;
     this.quatre = quatre;
     if(!familyId.Equals("")) isnew = false;
     loadFamily();
     InitializeComponent();
 }
Exemplo n.º 3
0
 public formFamily(Form parentForm, Quatre quatre, Family family)
 {
     this.family = family;
     this.parentform = parentForm;
     this.familyid = family.ID;
     this.quatre = quatre;
     isnew = false;
     InitializeComponent();
 }
Exemplo n.º 4
0
 public formFamily(Form parentForm, Quatre quatre)
 {
     this.parentform = parentForm;
     this.quatre = quatre;
     family = new Family();
     isnew = true;
     family.ID = quatre.NextFamilyID;
     InitializeComponent();
 }
 public formIndividual(Form parentForm, Quatre quatre, Individual individual)
 {
     this.quatre = quatre;
     this.individual = individual;
     this.parentform = parentForm;
     this.individualid = individual.ID;
     isnew = false;
     InitializeComponent();
 }
 public formIndividual(Form parentForm, Quatre quatre, int individualId)
 {
     this.quatre = quatre;
     this.parentform = parentForm;
     this.individualid = individualId;
     if (!individualid.Equals("")) isnew = false;
     loadIndividual();
     InitializeComponent();
 }
 public formIndividual(Form parentForm, Quatre quatre)
 {
     this.quatre = quatre;
     this.parentform = parentForm;
     isnew = true;
     individual = new Individual();
     individual.ID = quatre.NextIndividualID;
     InitializeComponent();
 }
        public listIndividualsForm(Quatre quatre, Form parentForm, bool selectOnly, enums.ListFilter filter)
        {
            this.quatre = quatre;
            this.parentform = parentForm;
            this.selectonly = selectOnly;
            this.filter = filter;

            InitializeComponent();

            if (!this.selectonly)
            {
                buttonSelect.Text = "Edit";
            }
        }
Exemplo n.º 9
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (MessageBox.Show(this, "Note that if you create or update any data from this point onwards, until restart, that this newly imported data will persist", "Quatre Family Editor", MessageBoxButtons.OK, MessageBoxIcon.Warning) == System.Windows.Forms.DialogResult.OK)
     {
         mainForm mainform = (mainForm)parentform;
         Quatre quatre = new Quatre();
         quatre.Individuals = individuals;
         quatre.Families = families;
         quatre.MaxIndividualID = maxindividualid;
         quatre.MaxFamilyID = maxfamilyid;
         mainform.loadQuatre(quatre);
         mainform.loadList();
         this.Close();
     }
 }
Exemplo n.º 10
0
        public formFamily(Form parentForm, Quatre quatre, Individual husbandOrWife)
        {
            this.parentform = parentForm;
            this.quatre = quatre;
            family = new Family();
            isnew = true;
            family.ID = quatre.NextFamilyID;

            if (husbandOrWife.Sex.Equals(enums.Sex.Male))
            {
                family.Husband = husbandOrWife;
            }
            else
            {
                family.Wife = husbandOrWife;
            }

            InitializeComponent();
        }
Exemplo n.º 11
0
 public htmlExportForm(Form parentForm, Quatre quatre)
 {
     this.parentform = parentForm;
     this.quatre = quatre;
     InitializeComponent();
 }
 public listFamiliesForm(Form parentForm, Quatre quatre)
 {
     this.parentform = parentForm;
     this.quatre = quatre;
     InitializeComponent();
 }
Exemplo n.º 13
0
 public void loadQuatre(Quatre quatre)
 {
     this.quatre = quatre;
 }