void ConfirmSaveMessageBoxAccepted(object sender, PlayerIndexEventArgs e) { var pss = new ProfileScreen((ScreenManager.Game as HalfCakedGame).Device); pss.ProfileSelected += ConfirmExitMessageBoxAccepted; ScreenManager.AddScreen(pss, e.PlayerIndex); }
void ProfileMenuEntrySelected(object sender, PlayerIndexEventArgs e) { var device = (ScreenManager.Game as HalfCakedGame).Device; GameScreen msgbox; if (device != null) msgbox = new ProfileScreen(device); else msgbox = new MessageBoxScreen("Unable to write to your documents folder. Cannot save profiles.", new string[]{"Ok"}, 0); ScreenManager.AddScreen(msgbox, null); }