Beispiel #1
0
 private void btnAdd_Click(object sender, System.EventArgs e)
 {
     if (this.m_Person != Person.Null)
     {
         PersonFamily personFamily = new PersonFamily {
             ToPersonId = this.m_Person.Id
         };
         PersonFamilyAddChangeForm form = new PersonFamilyAddChangeForm(personFamily, this.m_Apartment);
         if (form.ShowDialog(this) == System.Windows.Forms.DialogResult.Yes)
         {
             this.bsPersonFamily.Add(personFamily);
         }
     }
 }
 public PersonFamilyAddChangeForm(PersonFamily personFamily, Apartment apartment)
     : this()
 {
     this.m_PersonFamily = personFamily;
     this.m_Apartment = apartment;
 }
 public PersonFamilyAddChangeForm(PersonFamily personFamily)
     : this()
 {
     this.m_PersonFamily = personFamily;
 }
 public PersonFamilyAddChangeForm()
 {
     this.m_PersonFamily = PersonFamily.Null;
     this.m_Apartment = Apartment.Null;
     this.InitializeComponent();
 }