private void paramètresToolStripMenuItem_Click(object sender, EventArgs e) { param usr = new param(); usr.MdiParent = this; usr.Show(); }
private void familleClientToolStripMenuItem_Click(object sender, EventArgs e) { param frm = new param(); frm.table = "familleclient"; frm.champs = "familleclient"; frm.Text = "Famille Client"; frm.MdiParent = this; frm.Show(); this.buttonX7.Focus(); }
private void familleFournisseurToolStripMenuItem_Click(object sender, EventArgs e) { //famille frm = new famille(); param frm = new param(); frm.table = "famillefour"; frm.champs = "famillefour"; frm.Text = "Famille Fournisseur"; frm.MdiParent = this; frm.Show(); this.buttonX7.Focus(); }
private void régionToolStripMenuItem_Click(object sender, EventArgs e) { if (Program.TFunction) { //famille frm = new famille(); param frm = new param(); frm.table = "region"; frm.champs = "region"; frm.Text = "Régions"; frm.MdiParent = this; frm.Show(); this.buttonX7.Focus(); } }
private void buttonX12_Click(object sender, EventArgs e) { param frm = new param(); frm.table = "famillefour"; frm.champs = "famillefour"; frm.Text = "famille Fournisseur"; frm.ShowDialog(); string req1 = "Select * from FamilleFour"; DataSet ds1 = met.recuperer_table(req1, "FamilleFour"); BindingSource bs = new BindingSource(ds1, "FamilleFour"); comboBox1.DataSource = bs; }
private void buttonX9_Click(object sender, EventArgs e) { param frm = new param(); frm.table = "region"; frm.champs = "region"; frm.Text = "Région"; frm.ShowDialog(); string req1 = "Select * from Region where codes='" + Program.Societe + "' AND codee='" + Program.Exercice + "'"; DataSet ds1 = met.recuperer_table(req1, "Region"); BindingSource bs = new BindingSource(ds1, "Region"); comboBox2.DataSource = bs; }