예제 #1
0
        private void addRelationshipButton_Click(object sender, EventArgs e)
        {
            AddDependentForm addDependentWindow = new AddDependentForm(dependentList, true);

            addDependentWindow.ShowDialog();
            fillDependentList();
            index = -1;
            EnableButtons();
        }
예제 #2
0
        private void editRelationshipButton_Click(object sender, EventArgs e)
        {
            Dependent        newDependent       = dependentList[index];
            AddDependentForm addDependentWindow = new AddDependentForm(newDependent, index, false);

            addDependentWindow.ShowDialog();
            fillDependentList();
            index = -1;
            EnableButtons();
        }