Ejemplo n.º 1
0
        private void simpleButton26_Click(object sender, EventArgs e)
        {
            add_modif_projet add = new add_modif_projet();

            etat = "ajouter";
            add.ShowDialog();
        }
Ejemplo n.º 2
0
        private void simpleButton25_Click(object sender, EventArgs e)
        {
            int count = gridView5.DataRowCount;

            if (count != 0 && gridView5.FocusedRowHandle != DevExpress.XtraGrid.GridControl.AutoFilterRowHandle)
            {
                System.Data.DataRow row = gridView5.GetDataRow(gridView5.FocusedRowHandle);
                id_projet = Convert.ToInt32(row[0]);
                intitu    = row["intitu"].ToString();
                faisab    = row["faisab"].ToString();
                comm      = row["comm"].ToString();
                etat      = "modifier";
                add_modif_projet add = new add_modif_projet();

                add.ShowDialog();
            }
        }