Example #1
0
        partial void BtSauver_TouchUpInside(UIButton sender)
        {
            string lien = Environment.CurrentDirectory;

            SudoKolorDataXml sauvegarde = new SudoKolorDataXml(lien + "/" + "maSauvegarde");

            sauvegarde.Sauver(this.game);
            UIAlertView alert = new UIAlertView
            {
                Title   = "Back-up",
                Message = "Saved game"
            };

            alert.AddButton("Ok");
            alert.Show();
        }
Example #2
0
        partial void BtnSaved_TouchUpInside(UIButton sender)
        {
            ExisteSauvegarde.get().Clickedsaved = true;
            string           lien = Environment.CurrentDirectory;
            SudoKolorDataXml sauv = new SudoKolorDataXml(lien + "/" + "maSauvegarde");
            Sudokolor        jeu  = sauv.Charger();

            if (jeu == null)
            {
                UIAlertView alert = new UIAlertView
                {
                    Title   = "Back-up",
                    Message = "You no have backup"
                };
                alert.AddButton("Ok");
                alert.Show();
            }
            else
            {
                ExisteSauvegarde.get().LeJeu = jeu;
            }
        }