Exemplo n.º 1
0
        private void simpleButtonModifiedMember_Click(object sender, EventArgs e)
        {
            FamilyMemberEditForm f = new FamilyMemberEditForm(this.bindingSourceFamilyMember.Current as Model.FamilyMembers);

            if (f.ShowDialog() == DialogResult.OK)
            {
                this.gridControl1.RefreshDataSource();
            }
        }
Exemplo n.º 2
0
        private void simpleButtonAddMember_Click(object sender, EventArgs e)
        {
            FamilyMemberEditForm f = new FamilyMemberEditForm();

            if (f.ShowDialog() == DialogResult.OK)
            {
                this.employee.FamilyMembers.Add(f.FamilyMember);
                this.gridControl1.RefreshDataSource();
            }
        }