private void btnAdd_Click(object sender, System.EventArgs e) { if (this.m_Person != Person.Null) { PersonProperty personProperty = new PersonProperty { PersonId = this.m_Person.Id, PersonName = this.m_Person.ToString() }; PersonPropertiesAddChangeForm form = new PersonPropertiesAddChangeForm(personProperty); if (form.ShowDialog() == System.Windows.Forms.DialogResult.Yes) { this.bsPersonProperties.Add(personProperty); } } }
public PersonPropertiesAddChangeForm(PersonProperty personProperty) : this() { this.m_PersonProperty = personProperty; }
public PersonPropertiesAddChangeForm() { this.m_PersonProperty = PersonProperty.Null; this.InitializeComponent(); }