private void clientesToolStripMenuItem_Click(object sender, EventArgs e) { if (Application.OpenForms["Clientes"] != null) { Application.OpenForms["Clientes"].Activate(); } else { Clientes frm = new Clientes(); frm.MdiParent = this; frm.Show(); } }
//////////////private void facturasCabDataGridView_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) //////////////{ ////////////// // e.CellStyle.BackColor = (bool)facturasCabDataGridView.Rows[e.RowIndex].Cells["Entregada"].Value == false ? Color.White : Color.Yellow; ////////////// e.CellStyle.BackColor = (bool)facturasCabDataGridView.Rows[e.RowIndex].Cells["Cobrada"].Value == true ? Color.LightGray : (bool)facturasCabDataGridView.Rows[e.RowIndex].Cells["Entregada"].Value == true ? Color.Yellow : Color.White; ////////////// e.CellStyle.Font = facturasCabDataGridView.Rows[e.RowIndex].Cells["FacturaPresup"].Value == DBNull.Value ? new Font("Arial", 8, FontStyle.Regular) : new Font("Arial", 8, FontStyle.Italic); ////////////// // e.CellStyle.SelectionBackColor = (bool)facturasCabDataGridView.Rows[e.RowIndex].Cells["Entregada"].Value == false ? Color.Blue : Color.MediumAquamarine; //////////////} private void button2_Click(object sender, EventArgs e) { object valor = comboBox1.SelectedValue; Clientes frm = new Clientes(); frm.ShowDialog(); clientesTableAdapter.FillByEmpresa(promowork_dataDataSet1.Clientes, VariablesGlobales.nIdEmpresaActual); comboBox1.SelectedValue = valor; }
private void button2_Click(object sender, EventArgs e) { Clientes frm = new Clientes(); frm.ShowDialog(); clientesTableAdapter.FillByEmpresa(promowork_dataDataSet.Clientes, VariablesGlobales.nIdEmpresaActual); }