示例#1
0
        /*BtnRetour_Click
         * Permet de retourner sur la view Accueil*/
        private void BtnRetour_Click(object sender, EventArgs e)
        {
            Users       users   = new Users(LblUser.Text);
            ListMatiere accueil = new ListMatiere(users, LblNiveau.Text);

            ActiveForm.Close();
            accueil.Hide();
            accueil.Show();
        }
示例#2
0
        private void Dgv_Niveaux_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            Users           user         = new Users(lbl_login.Text);
            DataGridViewRow lineSelected = Dgv_Niveaux.Rows[Dgv_Niveaux.SelectedCells[0].RowIndex];
            string          nomNiveau    = Convert.ToString(lineSelected.Cells[0].Value);
            Niveaux         niveau       = new Niveaux(Dgv_Niveaux.SelectedRows.ToString());
            ListMatiere     forum        = new ListMatiere(user, nomNiveau);

            ActiveForm.Close();
            forum.Hide();
            forum.Show();
        }