Esempio n. 1
0
        private void ButtonSubmit_Click(object sender, RoutedEventArgs e)
        {
            string nom    = TextBoxNom.Text;
            string prenom = TextBoxPrenom.Text;
            string email  = TextBoxMail.Text;

            MyPersonalMapData data = new MyPersonalMapData(nom, prenom, email);

            if (data.BinaryExist())
            {
                data = data.LoadAsBinary();
            }
            else
            {
                data.SaveAsBinary();
            }
            Map m = new Map(data);

            m.Show();
            this.Close();
        }