public MenuScreen(IDevice device) : base(device) { prologBtn = new Button("menu.prolog", 6, 6, 148, 151); prologBtn.Clicked += prologBtnClicked; playBtn = new Button("menu.play", 160, 0, 480, 480); playBtn.Clicked += playBtnClicked; musicBtn = new CheckButton("menu.music_on", "menu.music_off", 6, 164, 148, 151); musicBtn.Clicked += musicBtnClicked; authorsBtn = new Button("menu.authors", 6, 323, 148, 151); authorsBtn.Clicked += authorsBtnClicked; exitBtn = new Button("menu.exit", 646, 323, 148, 151); exitBtn.Clicked += exitBtnClicked; if (device.IsPlayBackgroundMusic()) { musicBtn.IsChecked = false; } else { string isPlayValue = "Y"; device.LoadSettings("music", ref isPlayValue); musicBtn.IsChecked = isPlayValue != "Y"; } scoreLblCaption = new Label("Balance:", 646, 6, "Arial"); scoreLblValue = new Label(String.Empty, 646, 36, "Arial"); timeLblCaption = new Label("Best time:", 646, 106, "Arial"); timeLblValue = new Label(String.Empty, 646, 136, "Arial"); promoLblCaption = new Label("Promo:", 646, 206, "Arial"); promoLblValue = new Label(String.Empty, 646, 236, "Arial"); contentList.AddRange(prologBtn.GetContent()); contentList.AddRange(playBtn.GetContent()); contentList.AddRange(musicBtn.GetContent()); contentList.AddRange(authorsBtn.GetContent()); contentList.AddRange(exitBtn.GetContent()); contentList.AddRange(scoreLblCaption.GetContent()); contentList.AddRange(scoreLblValue.GetContent()); contentList.AddRange(timeLblCaption.GetContent()); contentList.AddRange(timeLblValue.GetContent()); contentList.AddRange(promoLblCaption.GetContent()); contentList.AddRange(promoLblValue.GetContent()); }