Exemplo n.º 1
0
 private void tsbChangeApartmentOwner_Click(object sender, System.EventArgs e)
 {
     ApartmentOwner apartOwner = this.bsNewApartmentOwners.get_Current() as ApartmentOwner;
     if (apartOwner != null)
     {
         ApartmentOwnerAddChangeForm form = new ApartmentOwnerAddChangeForm(apartOwner, false, 0);
         form.ShowDialog(this);
         if (form.DialogResult == System.Windows.Forms.DialogResult.Yes)
         {
         }
     }
     else
     {
         Messages.ShowMessage("Выберите объект для редактирования");
     }
 }
Exemplo n.º 2
0
 private void tsbAddApartmentOwner_Click(object sender, System.EventArgs e)
 {
     ApartmentOwner apartOwner = new ApartmentOwner {
         FromDate = this.dtpSplitDate.Value
     };
     ApartmentOwnerAddChangeForm form = new ApartmentOwnerAddChangeForm(apartOwner, false, 1);
     form.ShowDialog(this);
     if (form.DialogResult == System.Windows.Forms.DialogResult.Yes)
     {
         this.bsNewApartmentOwners.Add(form.ApartmentOwner);
     }
 }