Esempio n. 1
0
        private void carregaCombobox()
        {
            ServiceCategoria serviceCategoria = new ServiceCategoria();

            this.cboCategoria.DataSource     = serviceCategoria.ListCategoria();
            this.cboCategoria.SelectedIndex += -1;
        }
Esempio n. 2
0
        //Métodos
        private void carregaComboBox()
        {
            ServiceCor serviceCor = new ServiceCor();

            this.cboCor.DataSource     = serviceCor.ListCor();
            this.cboCor.SelectedIndex += -1;

            ServiceCategoria serviceCategoria = new ServiceCategoria();

            this.cboCategoria.DataSource     = serviceCategoria.ListCategoria();
            this.cboCategoria.SelectedIndex += -1;

            this.cboAcessorio.DataSource     = Enum.GetValues(typeof(EnumAcessorio));
            this.cboAcessorio.SelectedIndex += -1;
        }