예제 #1
0
 public NuevoCupon()
 {
     InitializeComponent();
     var manager = new CiudadesManager();
     var cities = manager.GetAll();
     cities.ForEach(x => clbCiudades.Items.Add(x, false));
     clbCiudades.DisplayMember = "Name";
 }
예제 #2
0
 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;
 }