public ApartmentCounterPlaceAddChangeForm(long counterId) { this.InitializeComponent(); this.m_ApartmentCounterPlace = new AIS.SN.Model.DomainObjects.ApartmentCounterPlace(); this.dbfromDate.Value = System.DateTime.Now; this.m_ApartmentCounterPlace.CounterId = counterId; }
public ApartmentCounterPlaceAddChangeForm(AIS.SN.Model.DomainObjects.ApartmentCounterPlace apartmentCounterPlace) { this.InitializeComponent(); this.m_apartmentCounterPlace = apartmentCounterPlace; this.set_Text("Редактирование мест расположения"); this.ApartmentCounterPlace = apartmentCounterPlace; this.dbfromDate.Value = apartmentCounterPlace.FromDate; this.cbPlace.set_Text(this.cbPlace.SelectedFasetItem.ToString()); }