private void bt_LoadGame_Click(object sender, EventArgs e)
        {
            if (!LoadGame.LoadHero())
            {
                MessageBox.Show(@"          You dont have Character !
                        Click on ""NEW GAME"" to create your first!");
            }
            else
            {
                this.Close();
                var game = new Game();
                game.Start();
                Frm_HeroSelection.DrawSoftUni();

                Console.ForegroundColor = ConsoleColor.DarkGreen;
                Console.WriteLine("-------------------Welcome to our game \"World of SofrUni\".-------------------");
                Console.WriteLine();
                Console.WriteLine(new string(Constants.LineSeparator, 79));
                Console.ForegroundColor = ConsoleColor.Green;
                Console.WriteLine("You have create new hero Mage.");
                Console.ForegroundColor = ConsoleColor.DarkGreen;
                Console.WriteLine(new string(Constants.LineSeparator, 79));
                Console.WriteLine("1.To continue playing please enter command \"help\" to show you all command.");
                Console.WriteLine(new string(Constants.LineSeparator, 79));
                Console.WriteLine("2.To EXIT and SAVE the game enter command \"exit\".");
                Console.WriteLine(new string(Constants.LineSeparator, 79));
                Console.WriteLine("3.To SAVE and continue playing the game enter command \"save\"");
                Console.WriteLine();
                Console.ForegroundColor = ConsoleColor.White;
            }
        }
Example #2
0
 private void bt_StartGame_Click(object sender, EventArgs e)
 {
     this.Hide();
     var form2 = new Frm_HeroSelection();
     form2.Closed += (s, args) => this.Close();
     form2.Show();
 }
        private void bt_StartGame_Click(object sender, EventArgs e)
        {
            this.Hide();
            var heroSelection = new Frm_HeroSelection();

            heroSelection.Closed += (s, args) => this.Close();
            heroSelection.Show();
        }