Beispiel #1
0
        void doubleclic_grid()
        {
            try
            {
                FrmEntree frm = new FrmEntree();
                int       i;
                i = dgFinance.CurrentRow.Index;

                frm.id               = Convert.ToInt32(dgFinance["ColId", i].Value.ToString());
                frm.valeur1D.Text    = dgFinance["ColVal", i].Value.ToString();
                frm.fcTxt.Text       = dgFinance["ColFc", i].Value.ToString();
                frm.dollarTxt.Text   = dgFinance["ColDoll", i].Value.ToString();
                frm.departCombo.Text = dgFinance["ColDepart", i].Value.ToString();
                frm.sourceCombo.Text = dgFinance["ColSource", i].Value.ToString();
                frm.concernDate.Text = dgFinance["ColDate", i].Value.ToString();

                frm.ShowDialog();
            }
            catch (Exception ex)
            {
                MessageBox.Show("L'erreur suivant est survenue : " + ex.Message);
            }
        }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            FrmEntree frm = new FrmEntree();

            frm.ShowDialog();
        }