private void produtosToolStripMenuItem_Click(object sender, EventArgs e) { PanCentral.Visible = true; NomRotina.Text = "Cadastro de Produtos"; NomRotina.Visible = true; CarregarListViewProdutos(); Filtros = new string[] { "ID", "NOME", "DESCRIÇÃO DETALHADA", "GRUPO DE ITENS", "UN. MEDIDA", "NATUREZA" }; CombBxFilt.DataSource = new BindingSource(FiltrosGrade(Filtros), null); CombBxFilt.DisplayMember = "Value"; CombBxFilt.ValueMember = "Key"; CombBxFilt.SelectedIndex = CombBxFilt.FindStringExact("Nome"); }
public void clientesToolStripMenuItem_Click(object sender, EventArgs e) { PanCentral.Visible = true; NomRotina.Text = "Cadastro de Clientes"; NomRotina.Visible = true; CarregarListViewClientes(); Filtros = new string[] { "ID", "NOME", "CPF / CNPJ", "TELEFONE", "CEL", "E-MAIL" }; CombBxFilt.DataSource = new BindingSource(FiltrosGrade(Filtros), null); CombBxFilt.DisplayMember = "Value"; CombBxFilt.ValueMember = "Key"; CombBxFilt.SelectedIndex = CombBxFilt.FindStringExact("Nome"); }
private void orçamentosToolStripMenuItem_Click(object sender, EventArgs e) { PanCentral.Visible = true; NomRotina.Text = "Manutenção de Pedidos de Venda"; NomRotina.Visible = true; // LsVyPrinc.Rows.Clear(); CarregarListViewPdVenda(); Filtros = new string[] { "ID", "Data Emissão", "ID Cliente", "Nome Cliente", "Valor", "Status", "Ult. Alteração" }; CombBxFilt.DataSource = new BindingSource(FiltrosGrade(Filtros), null); CombBxFilt.DisplayMember = "Value"; CombBxFilt.ValueMember = "Key"; CombBxFilt.SelectedIndex = CombBxFilt.FindStringExact("Data Emissão"); }
private void FormPesquisaSimples_Load(object sender, EventArgs e) { CarregarListView(); // this.FormClosing += new FormClosingEventHandler(FormPesquisaSimples_Closing); this.LsVyPrinc.CellContentDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.roomDataGridView_CellContentDoubleClick); // this.FormClosed += new FormClosedEventHandler(Inicio_FormClosed_1); Dictionary <string, string> comboSource = new Dictionary <string, string>(); comboSource.Add("1", "ID"); comboSource.Add("2", "DESCRIÇÃO"); CombBxFilt.DataSource = new BindingSource(comboSource, null); CombBxFilt.DisplayMember = "Value"; CombBxFilt.ValueMember = "Key"; CombBxFilt.SelectedIndex = CombBxFilt.FindStringExact("DESCRIÇÃO"); }