public Compra() { InitializeComponent(); agregarCategoria.BackgroundImage = Properties.Resources.plus_icon; quitarCategoria.BackgroundImage = Properties.Resources.minus_icon; fechaInicioVista.Value = Utils.Utilities.getCurrentDate(); fechaFinVista.Value = Utils.Utilities.getCurrentDate(); RubroService rubroService = new RubroService(); categoriasComboBox.DataSource = rubroService.getAllRubros(); categoriasVista.Text = ""; System.Drawing.Size size = new System.Drawing.Size(1100, 500); this.Size = size; }
private void GetRubros() { RubroService rubroService = (RubroService)ServiceFactory.GetService("Rubro"); this.rubro.Items.AddRange(rubroService.getAllRubros().ToArray()); }
public Rubro_Publicacion() { InitializeComponent(); this.list_rubros.DataSource = rubroService.getAllRubros(); }