private void LrcModel() { Songerimg.Image = Image.FromFile(Application.StartupPath + @"\System\Hover\Open.png"); model = "LrcModel"; Search_view.Visible = false; LrcView.Visible = true; LrcView.BackColor = Color.Transparent; Image backimg = null; if (File.Exists(Application.StartupPath + @"\System\Static\backimgx.png")) { backimg = System.Drawing.Image.FromFile(Application.StartupPath + @"\System\Static\backimgx.png"); } top.BackgroundImage = backimg; bot.BackgroundImage = backimg; top.BackColor = Color.Transparent; bot.BackColor = Color.Transparent; LrcView.Anchor = (AnchorStyles)(AnchorStyles.Top | AnchorStyles.Bottom); LrcView.Width = panelRight.Width; LrcView.Location = new Point(0, LrcView.Location.Y); LrcView.BackgroundImage = backimg; lrcPanel.Visible = true; axPlayer1.Visible = false; playMode = ModePlay.lrc; }
private void MVmode() { LrcModel(); lrcPanel.Hide(); axPlayer1.Dock = DockStyle.Fill; axPlayer1.Visible = true; LrcView.Controls.Add(axPlayer1); playMode = ModePlay.mv; }
public void PlayAudioBackgroundWithPlayGame(ModePlay _modePlay) { if (_modePlay == ModePlay.PLAY_GAME) { m_audioBGPlayGame.Play(); m_audioBGAnimal.Stop(); } else { m_audioBGPlayGame.Stop(); m_audioBGAnimal.Play(); } }
private void SearchModel() { Songerimg.Image = Image.FromFile(Application.StartupPath + @"\System\Hover\down.png"); Color df = Color.FromArgb(20, 155, 118); model = "SearchModel"; Search_view.Visible = true; LrcView.Visible = false; Search_view.Width = panelRight.Width; Search_view.Anchor = (AnchorStyles)(AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Bottom); top.BackgroundImage = null; bot.BackgroundImage = null; top.BackColor = df; bot.BackColor = df; Search_view.BackColor = Color.FromArgb(75, 196, 162); blue.BackColor = Color.FromArgb(114, 246, 236); gray.BackColor = Color.FromArgb(128, 163, 202); Songlist.BackColor = Color.FromArgb(255, 255, 255); playMode = ModePlay.search; }