public SmsApartmentCounterNameAddChangeForm(SmsApartmentCounterName smsApartmentCounterName)
     : this()
 {
     this.m_SmsApartmentCounterName = smsApartmentCounterName;
     this.set_Text(this.m_SmsApartmentCounterName.IsNew ? ((string) "Добавление нового названия счетчика") : ((string) "Изменение названия счетчика"));
     this.btOk.set_Text(this.m_SmsApartmentCounterName.IsNew ? ((string) "Добавить") : ((string) "Изменить"));
     this.bsSmsApartmentCounterName.set_DataSource(this.m_SmsApartmentCounterName);
     this.m_SmsApartmentCounterName.BeginEdit();
 }
 public SmsApartmentCounterNameAddChangeForm()
 {
     this.m_SmsApartmentCounterName = SmsApartmentCounterName.Null;
     this.InitializeComponent();
     this.set_Font(Manager.WindowFont);
 }