public MainWindow() { InitializeComponent(); Pages.EditPage editPage = new Pages.EditPage(); Pages.FightPage fightPage = new Pages.FightPage(); Pages.RegPage regPage = new Pages.RegPage(frame, editPage); frame.Navigate(regPage); //Player Insur = new Player("Insur", "Black"); //Player Alexandr = new Player("Leha", "Red"); //Alexandr.map.SetShip(5, 4, "right", 3); //Insur.map.SetShip(2, 1, "right", 3); //Alexandr.Ready = true; //Insur.Ready = true; //Insur.PlayerAtack(Alexandr, 3, 3); //Alexandr.PlayerAtack(Insur, 4, 4); //Insur.PlayerAtack(Alexandr, 6, 3); //MapShow(Insur, TextBlock); //MapShow(Alexandr, TextBlock1); }
public RegPage(Frame frame, EditPage editPage) { this.editPage = editPage; this.frame = frame; InitializeComponent(); }