private void button1_Click_1(object sender, EventArgs e) { ace = new AgeClassEditor(Session, this.Individual, (IndividualAgeClass)individualAgeClassBindingSource.Current); ace.ShowDialog(); this.dataGridViewIndividualAgeClass.Refresh(); }
private void button3_Click(object sender, EventArgs e) { ace = new AgeClassEditor(Session, this.Individual); DialogResult result = ace.ShowDialog(); if (result == System.Windows.Forms.DialogResult.OK) { this.Individual.AgeClassHistory.Add(ace.State); this.individualAgeClassBindingSource.Add(ace.State); this.RefreshLabels(); } }