Beispiel #1
0
        private void btnDauther_Click(object sender, EventArgs e)
        {
            String          relative = btnDauther.Text;
            addFamilyMember nova     = new addFamilyMember(relative, globalMember, globalFamily);

            nova.client = client;
            nova.ShowDialog();
        }
Beispiel #2
0
        private void btnSpouse_Click(object sender, EventArgs e)
        {
            String          relative = "SUPRUZNIK";
            addFamilyMember nova     = new addFamilyMember(relative, globalMember, globalFamily);

            nova.client = client;
            nova.ShowDialog();
        }
Beispiel #3
0
        private void btnShowList_Click(object sender, EventArgs e)
        {
            addFamilyMember newMember = new addFamilyMember("FILL", globalMember, globalFamily);

            newMember.client = client;
            newMember.ShowDialog();
            this.globalMember = null;
            txtName.Text      = "";
            txtSurname.Text   = "";
        }
Beispiel #4
0
        private void btnNewMember_Click(object sender, EventArgs e)
        {
            addFamilyMember newMember = new addFamilyMember(null, null, globalFamily);

            newMember.client = client;
            newMember.ShowDialog();
            if (newMember.globalRelative == null)
            {
                txtName.Text    = newMember.NameForNewMember;
                txtSurname.Text = newMember.SurnameForNewMember;
            }
        }