private void FillStreet() { using (var e = new PosBusiness.Catalogs()) { this.cmbStreet.Fill(e.List(STREET)); } }
private void LoadData(int?Id) { using (var e = new posb.Catalogs { Id = this.Id }) { e.Get(); this.txtName.Text = e.Name; } }
private void Save() { using (var e = new posb.Catalogs { Id = this.Id, Name = this.txtName.Text, Type = "Calle" }) { e.Save(); this.Result(true, "Success!!"); this.Close(); } }
public CalleList() { this.Entity = new posb.Catalogs(); InitializeComponent(); }