void LoadTransactionScreen(object sender, PlayerIndexEventArgs e) { HelpFadeScreen hfs = new HelpFadeScreen() { Title = "This is your record book.This icon on the right will bring up this book.\n" + "The arrow on the bottom will close the book.This is where you can\n" + "view your transaction history.", Selection = book, }; TransactionScreen transactionScreen = new TransactionScreen(); hfs.Exit += delegate(object s, PlayerIndexEventArgs x) { transactionScreen.ExitScreen(); }; ScreenManager.AddScreen(transactionScreen, e.PlayerIndex); ScreenManager.AddScreen(hfs, e.PlayerIndex); }
void LoadTransactionScreen(object sender, PlayerIndexEventArgs e) { TransactionScreen transactionScreen = new TransactionScreen(); ScreenManager.AddScreen(transactionScreen, e.PlayerIndex); }