Пример #1
0
        public static void loadinfo(Continue Win)
        {
            string progress, city, date, miles, money, health, text;
            string Notstarted = " Game Not@ Started";

            Notstarted = Notstarted.Replace("@", Environment.NewLine);

            for (int i = 0; i < db.EnabledGames.Count; i++)
            {
                if (db.EnabledGames[i] == true)
                {
                    progress = Game.GameList[i].Progress.ToString();
                    city     = Game.GameList[i].CurrentLocation;
                    date     = Game.GameList[i].CurrentDay;
                    miles    = Game.GameList[i].MilesTraveled.ToString();
                    money    = Game.GameList[i].CurrentMoney.ToString();
                    health   = Game.GameList[i].CurrentHealth.ToString();

                    text = String.Format(" Progress- {0}@ City- {1}@ Date- {2}@ Miles- {3}@ Money- {4}@ Health- {5}@", progress, city, date, miles, money, health);
                    text = text.Replace("@", Environment.NewLine);
                }
                else
                {
                    switch (i)
                    {
                    case 0:
                        Win.game1Desc.Text = Notstarted;
                        break;

                    case 1:
                        Win.game2Desc.Text = Notstarted;
                        break;

                    case 2:
                        Win.game3Desc.Text = Notstarted;
                        break;
                    }
                }
            }
        }
Пример #2
0
 public NewGame(int gamenum, Continue prevwin)
 {
     InitializeComponent();
     Gamenum  = gamenum;
     Prev_win = prevwin;
 }
Пример #3
0
 private void ContinueButton_Click(object sender, RoutedEventArgs e)
 {
     Windows.Continue contin_win = new Continue();
     contin_win.Show();
     this.Close();
 }