1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| using ScheduleMaker.Resources;
namespace ScheduleMaker
{
public partial class MainPage : PhoneApplicationPage
{
// Constructeur
public MainPage()
{
InitializeComponent();
List<Matiere> matieres = new List<Matiere>();
// Exemple de code pour la localisation d'ApplicationBar
//BuildLocalizedApplicationBar();
}
private void Button_Click(object sender, RoutedEventArgs e)
{
Matiere m = new Matiere();
m.name = nameTxt.Text;
m.coef = double.Parse( coefTxt.Text);
m.vol_h = double.Parse( volTxt.Text);
m.importance = Convert.ToInt32(impSlider.Value);
matieres.Add(m);
MessageBox.Show(Convert.ToString(matieres.Count));
}
}
} |
Partager