public Game(LoginPlayer lp) { Music.URL = @"Music.mp3"; InitializeComponent(); this.lp = lp; Player = new Fighter(lp.NamePlayer, maxhp); Comp = new Computer(maxhp); dataGridView1.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells; dataGridView1.DefaultCellStyle.WrapMode = DataGridViewTriState.True; }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); LoginPlayer lp = new LoginPlayer(); Application.Run(new FormEntry(lp)); if (lp.ResEntry) { Application.Run(new Game(lp)); } }
public FormEntry(LoginPlayer lp) { InitializeComponent(); this.lp = lp; lp.ResEntry = false; }