示例#1
0
 public NuevoCupon()
 {
     InitializeComponent();
     var manager = new CiudadesManager();
     var cities = manager.GetAll();
     cities.ForEach(x => clbCiudades.Items.Add(x, false));
     clbCiudades.DisplayMember = "Name";
 }
 public ProveedorUserControl()
 {
     InitializeComponent();
     _proveedor = new Proveedor();
     var citiesManager = new CiudadesManager();
     var cities = citiesManager.GetAll();
     var rubrosManager = new RubrosManager();
     cbxRubro.DataSource = rubrosManager.GetAll();
     cbxRubro.DisplayMember = "Name";
     cbxRubro.SelectedIndex = 0;
     cbxCiudad.DataSource = cities;
     cbxCiudad.DisplayMember = "Name";
     cbxCiudad.SelectedIndex = 0;
 }