예제 #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);
         }
     }
 }
예제 #2
0
 public PersonFamilyAddChangeForm(PersonFamily personFamily, Apartment apartment)
     : this()
 {
     this.m_PersonFamily = personFamily;
     this.m_Apartment = apartment;
 }
예제 #3
0
 public PersonFamilyAddChangeForm(PersonFamily personFamily)
     : this()
 {
     this.m_PersonFamily = personFamily;
 }
예제 #4
0
 public PersonFamilyAddChangeForm()
 {
     this.m_PersonFamily = PersonFamily.Null;
     this.m_Apartment = Apartment.Null;
     this.InitializeComponent();
 }