예제 #1
0
        private void btnRegister_Click(object sender, RoutedEventArgs e)
        {
            //mode_revision.prenom = textBox4.Text;
            //mode_revision.note = monjeu.points;
            string prenom = txtbPrenom.Text;
            int    score  = monjeu.points;

            //Form2.classer.classement.Add(mode_revision);

            // orthoDb.SaveDatabase(prenom, score); // without Data Set
            orthoDbDs.SaveDatabaseDataSet(prenom, score); // with Data Set

            //Form2.classer.Save(prenom, score);
            this.Hide();
            MainWindow window = new MainWindow();

            window.Show();
        }
예제 #2
0
        private void button4_Click(object sender, EventArgs e)
        {
            //mode_revision.prenom = textBox4.Text;
            //mode_revision.note = monjeu.points;
            string prenom = textBox4.Text;
            int    score  = monjeu.points;

            //Form2.classer.classement.Add(mode_revision);

            // orthoDb.SaveDatabase(prenom, score); // without Data Set
            orthoDbDs.SaveDatabaseDataSet(prenom, score); // with Data Set

            //Form2.classer.Save(prenom, score);
            this.Hide();
            Form2 window = new Form2();

            window.Show();
        }