private void Tnomc_KeyUp(object sender, KeyEventArgs e) { if (e.KeyData != Keys.Enter) { if (Tnomc.Text != "") { rechcli rcli = new rechcli("client", null, Tnomc.Text); rcli.ShowDialog(); if (rcli.valider) { cli = new MetierClient(rcli.code); change = true; mygrid1.Enabled = true; } if (cli != null) { Tcodc.Text = cli.Codec; Tnomc.Text = cli.NomC; Tadrc.Text = cli.adrc; Retenue = cli.ExenorationClient; mygrid1.Focus(); } } } }
private void Tcodc_KeyUp(object sender, KeyEventArgs e) { if (e.KeyData != Keys.Enter) { if (Tcodc.Text != "") { rechcli rcli = new rechcli("client", Tcodc.Text, null); rcli.ShowDialog(); if (rcli.valider) { cli = new MetierClient(rcli.code); change = true; mygrid1.Enabled = true; load_contrat(); grd_contrat.Focus(); } if (cli != null) { Tcodc.Text = cli.Codec; Tnomc.Text = cli.NomC; Retenue = cli.ExenorationClient; if (!Retenue) { checkBox1.Enabled = false; } checkBox1.Checked = Retenue; grd_contrat.Focus(); } } } }
private void nomc_KeyUp(object sender, KeyEventArgs e) { if (e.KeyData != Keys.Enter) { if (nomc.Text != "") { rechcli rcli = new rechcli("client", null, nomc.Text); rcli.ShowDialog(); codec.Text = rcli.code; nomc.Text = rcli.libe; buttonX1.Focus(); } } }