public void AddControlLibary() { // // ListviewLibrary // ListviewLibrary = new ListView(); ListviewLibrary.Location = new System.Drawing.Point(3, 3); ListviewLibrary.Size = new System.Drawing.Size(665, 525); ListviewLibrary.TabIndex = 0; ListviewLibrary.View = View.Details; ListviewLibrary.SmallImageList = imageList1; ListviewLibrary.Columns.Add("MP3", 300, HorizontalAlignment.Center); ListviewLibrary.Columns.Add("Tile", 100, HorizontalAlignment.Center); ListviewLibrary.Columns.Add("Artsist", 100, HorizontalAlignment.Center); ListviewLibrary.Columns.Add("Album", 100, HorizontalAlignment.Center); ListviewLibrary.Columns.Add("Year", 50, HorizontalAlignment.Center); ListviewLibrary.UseCompatibleStateImageBehavior = false; ListviewLibrary.FullRowSelect = true; ListviewLibrary.MouseClick += new MouseEventHandler(ListviewLibrary_MouseClick); ListviewLibrary.DoubleClick += new EventHandler(ListviewLibrary_DoubleClick); // // ImagePicture // ImagePicture = new PictureBox(); ImagePicture.Location = new System.Drawing.Point(671, 3); ImagePicture.Size = new System.Drawing.Size(180, 150); ImagePicture.BackgroundImageLayout = ImageLayout.Stretch; // // panel1 // panel2 = new Panel(); panel2.Controls.Add(ImagePicture); panel2.Controls.Add(ListviewLibrary); panel2.Location = new System.Drawing.Point(226, 146); panel2.Size = new System.Drawing.Size(877, 528); panel2.TabIndex = 1119; this.Controls.Add(panel2); // // Content // Content = new TextBox(); Content.Location = new System.Drawing.Point(226, 107); Content.Size = new System.Drawing.Size(115, 20); Content.TabIndex = 1120; Content.KeyPress += new KeyPressEventHandler(Content_KeyPress); this.Controls.Add(Content); // // combombox1 // combombox1 = new ComboBox(); combombox1.FormattingEnabled = true; combombox1.Items.AddRange(new object[] { "Artist", "Album", "Year", "Default"}); combombox1.Location = new System.Drawing.Point(437, 106); combombox1.Size = new System.Drawing.Size(121, 21); combombox1.TabIndex = 1121; combombox1.SelectedIndexChanged += new EventHandler(combombox1_SelectedIndexChanged); this.Controls.Add(combombox1); // //searchLibrary // SearchLibrary = new MediaButton(); this.SearchLibrary.AutoScrollMargin = new System.Drawing.Size(0, 0); this.SearchLibrary.AutoScrollMinSize = new System.Drawing.Size(0, 0); this.SearchLibrary.BorderStyle = PWR_UI.BorderStyle.Thin; this.SearchLibrary.DisabledForeColor = System.Drawing.Color.DarkGray; this.SearchLibrary.FocusedForeColor = System.Drawing.Color.WhiteSmoke; this.SearchLibrary.FocusOnClick = false; this.SearchLibrary.FocusOnHover = false; this.SearchLibrary.Image = global::WindowsFormsApplication9.Properties.Resources.Search_text; this.SearchLibrary.ImageAlign = PWR_UI.MediaButton.Alignment.MiddleCenter; this.SearchLibrary.ImageFocused = null; this.SearchLibrary.ImagePadding = new System.Windows.Forms.Padding(8); this.SearchLibrary.Location = new System.Drawing.Point(361, 89); this.SearchLibrary.ResizeOnLoad = false; this.SearchLibrary.Size = new System.Drawing.Size(56, 51); this.SearchLibrary.Style = PWR_UI.MediaButton.ButtonStyle.MenuButton; this.SearchLibrary.TabIndex = 1122; this.SearchLibrary.TextAlign = PWR_UI.MediaButton.Alignment.BottomRight; this.SearchLibrary.TextPadding = new System.Windows.Forms.Padding(4); SearchLibrary.Click += new EventHandler(SearchLibrary_Click); this.Controls.Add(SearchLibrary); }
private void mediaButton8_MouseClick(object sender, MouseEventArgs e) { button = 8; player_hide_show(true); lyric_hide_show(true); pic_hide_show(true); MediaButton[] bt = new MediaButton[] { mediaButton1, mediaButton2, mediaButton3, mediaButton4, mediaButton5, mediaButton6, mediaButton7 }; for (int i = 0; i < bt.Length; ++i) if (i < 3) bt[i].Location = new Point(bt[i].Location.X, 50 + i * 80); else bt[i].Location = new Point(bt[i].Location.X, 230 + i * 80); flag = 3; }
private void move_up(ref MediaButton[] bt, int high, int first) { int[] x = new int[bt.Length]; for (int i = 0; i < x.Length; ++i) x[i] = bt[i].Location.X; int y2 = bt[first].Location.Y - high; for (int i = bt[first].Location.Y; i >= y2; i -= 4) { for (int j = 0; j < x.Length; ++j) { bt[j].Location = new Point(x[j], i + 80 * (j - first)); } //Thread.Sleep(1); } }
private void mediaButton6_MouseClick(object sender, MouseEventArgs e) { button = 6; player_hide_show(true); lyric_hide_show(true); pic_hide_show(true); Hidelibrary(flaglibrary); flaglibrary = false; Hidepicture(flagpicture); flagpicture = false; if (flag > 6) { this.mediaButton9.Image = global::WindowsFormsApplication9.Properties.Resources.favorites; this.mediaButton9.ImageFocused = global::WindowsFormsApplication9.Properties.Resources.favorites; this.mediaButton13.Image = global::WindowsFormsApplication9.Properties.Resources.web; this.mediaButton13.ImageFocused = global::WindowsFormsApplication9.Properties.Resources.web; MediaButton[] bt = new MediaButton[] { mediaButton1, mediaButton2, mediaButton3, mediaButton4, mediaButton5, mediaButton6, mediaButton7 }; move_down(ref bt, 80 * (flag - 6), 5); flag = 6; bt = new MediaButton[] { mediaButton7 }; move_down(ref bt, 160, 0); } else if (flag < 6) { this.mediaButton9.Image = global::WindowsFormsApplication9.Properties.Resources.favorites; this.mediaButton9.ImageFocused = global::WindowsFormsApplication9.Properties.Resources.favorites; this.mediaButton13.Image = global::WindowsFormsApplication9.Properties.Resources.web; this.mediaButton13.ImageFocused = global::WindowsFormsApplication9.Properties.Resources.web; MediaButton[] bt = new MediaButton[] { mediaButton1, mediaButton2, mediaButton3, mediaButton4, mediaButton5, mediaButton6, mediaButton7 }; move_up(ref bt, 80 * (6 - flag), 6); flag = 6; bt = new MediaButton[] { mediaButton1, mediaButton2, mediaButton3, mediaButton4, mediaButton5, mediaButton6 }; move_up(ref bt, 160, 0); } }
private void mediaButton7_MouseClick(object sender, MouseEventArgs e) { button = 7; player_hide_show(true); lyric_hide_show(true); pic_hide_show(true); Hidelibrary(flaglibrary); flaglibrary = false; Hidepicture(flagpicture); flagpicture = false; if (flag < 7) { this.mediaButton13.Image = global::WindowsFormsApplication9.Properties.Resources.add_on; this.mediaButton13.ImageFocused = global::WindowsFormsApplication9.Properties.Resources.add_on; this.mediaButton9.Image = global::WindowsFormsApplication9.Properties.Resources.Google; this.mediaButton9.ImageFocused = global::WindowsFormsApplication9.Properties.Resources.Google; MediaButton[] bt = new MediaButton[] { mediaButton1, mediaButton2, mediaButton3, mediaButton4, mediaButton5, mediaButton6, mediaButton7 }; move_up(ref bt, 80 * (7 - flag), 6); flag = 7; bt = new MediaButton[] { mediaButton1, mediaButton2, mediaButton3, mediaButton4, mediaButton5, mediaButton6, mediaButton7 }; move_up(ref bt, 160, 0); } }
private void mediaButton5_MouseClick(object sender, MouseEventArgs e) { button = 5; player_hide_show(true); lyric_hide_show(false); pic_hide_show(true); Hidelibrary(flaglibrary); flaglibrary = false; Hidepicture(flagpicture); flagpicture = false; if (flag > 5) { this.mediaButton13.Image = global::WindowsFormsApplication9.Properties.Resources.save; this.mediaButton13.ImageFocused = global::WindowsFormsApplication9.Properties.Resources.save; this.mediaButton9.Image = global::WindowsFormsApplication9.Properties.Resources.lyric; this.mediaButton9.ImageFocused = global::WindowsFormsApplication9.Properties.Resources.lyric; MediaButton[] bt = new MediaButton[] { mediaButton1, mediaButton2, mediaButton3, mediaButton4, mediaButton5, mediaButton6, mediaButton7 }; move_down(ref bt, 80 * (flag - 5), 4); flag = 5; bt = new MediaButton[] { mediaButton6, mediaButton7 }; move_down(ref bt, 160, 0); //if (fileopenning) //{ //if (play_list.Items[count_play].Tag.ToString().Length > 0) // get_lyric(play_list.Items[count_play].Tag.ToString()); // else get_lyric(str_play_path); //} } else if (flag < 5) { this.mediaButton13.Image = global::WindowsFormsApplication9.Properties.Resources.save; this.mediaButton13.ImageFocused = global::WindowsFormsApplication9.Properties.Resources.save; this.mediaButton9.Image = global::WindowsFormsApplication9.Properties.Resources.lyric; this.mediaButton9.ImageFocused = global::WindowsFormsApplication9.Properties.Resources.lyric; MediaButton[] bt = new MediaButton[] { mediaButton1, mediaButton2, mediaButton3, mediaButton4, mediaButton5, mediaButton6, mediaButton7 }; move_up(ref bt, 80 * (5 - flag), 5); flag = 5; bt = new MediaButton[] { mediaButton1, mediaButton2, mediaButton3, mediaButton4, mediaButton5 }; move_up(ref bt, 160, 0); /*if (fileopenning) { if (play_list.Items[count_play].Tag.ToString().Length > 0) get_lyric(play_list.Items[count_play].Tag.ToString()); else*/ get_lyric(str_play_path); //} } }
public void AddControlPicture() { // // mediaButton20 // mediaButton20 = new MediaButton(); this.mediaButton20.AutoScrollMargin = new System.Drawing.Size(0, 0); this.mediaButton20.AutoScrollMinSize = new System.Drawing.Size(0, 0); this.mediaButton20.BorderStyle = PWR_UI.BorderStyle.Thin; this.mediaButton20.CheckStyle = false; this.mediaButton20.ContextMenuStrip = null; this.mediaButton20.DisabledForeColor = System.Drawing.Color.DarkGray; this.mediaButton20.FocusedForeColor = System.Drawing.Color.WhiteSmoke; this.mediaButton20.FocusOnClick = false; this.mediaButton20.FocusOnHover = false; this.mediaButton20.Image = global::WindowsFormsApplication9.Properties.Resources.galleryview; this.mediaButton20.ImageAlign = PWR_UI.MediaButton.Alignment.MiddleCenter; this.mediaButton20.ImageFocused = null; this.mediaButton20.ImagePadding = new System.Windows.Forms.Padding(8); this.mediaButton20.Location = new System.Drawing.Point(525, 37); this.mediaButton20.ResizeOnLoad = false; this.mediaButton20.Size = new System.Drawing.Size(64, 64); this.mediaButton20.Style = PWR_UI.MediaButton.ButtonStyle.MenuButton; this.mediaButton20.TabIndex = 1136; toolTip1.SetToolTip(mediaButton20, "View_Gallery"); this.mediaButton20.TextAlign = PWR_UI.MediaButton.Alignment.BottomRight; this.mediaButton20.TextPadding = new System.Windows.Forms.Padding(4); mediaButton20.Click += new EventHandler(mediaButton20_Click); this.Controls.Add(mediaButton20); // // mediaButton19 // mediaButton19 = new MediaButton(); this.mediaButton19.AutoScrollMargin = new System.Drawing.Size(0, 0); this.mediaButton19.AutoScrollMinSize = new System.Drawing.Size(0, 0); this.mediaButton19.BorderStyle = PWR_UI.BorderStyle.Thin; this.mediaButton19.CheckStyle = false; this.mediaButton19.ContextMenuStrip = null; this.mediaButton19.DisabledForeColor = System.Drawing.Color.DarkGray; this.mediaButton19.FocusedForeColor = System.Drawing.Color.WhiteSmoke; this.mediaButton19.FocusOnClick = false; this.mediaButton19.FocusOnHover = false; this.mediaButton19.Image = global::WindowsFormsApplication9.Properties.Resources.pane; this.mediaButton19.ImageAlign = PWR_UI.MediaButton.Alignment.MiddleCenter; this.mediaButton19.ImageFocused = null; this.mediaButton19.ImagePadding = new System.Windows.Forms.Padding(8); this.mediaButton19.Location = new System.Drawing.Point(441, 38); this.mediaButton19.ResizeOnLoad = false; this.mediaButton19.Size = new System.Drawing.Size(64, 64); this.mediaButton19.Style = PWR_UI.MediaButton.ButtonStyle.MenuButton; this.mediaButton19.TabIndex = 1135; this.mediaButton19.TextAlign = PWR_UI.MediaButton.Alignment.BottomRight; this.mediaButton19.TextPadding = new System.Windows.Forms.Padding(4); toolTip1.SetToolTip(mediaButton19, "View_Pane"); mediaButton19.Click += new EventHandler(mediaButton19_Click); this.Controls.Add(mediaButton19); // // mediaButton18 // mediaButton18 = new MediaButton(); this.mediaButton18.AutoScrollMargin = new System.Drawing.Size(0, 0); this.mediaButton18.AutoScrollMinSize = new System.Drawing.Size(0, 0); this.mediaButton18.BorderStyle = PWR_UI.BorderStyle.Thin; this.mediaButton18.CheckStyle = false; this.mediaButton18.ContextMenuStrip = null; this.mediaButton18.DisabledForeColor = System.Drawing.Color.DarkGray; this.mediaButton18.FocusedForeColor = System.Drawing.Color.WhiteSmoke; this.mediaButton18.FocusOnClick = false; this.mediaButton18.FocusOnHover = false; this.mediaButton18.Image = global::WindowsFormsApplication9.Properties.Resources.thumnials1; this.mediaButton18.ImageAlign = PWR_UI.MediaButton.Alignment.MiddleCenter; this.mediaButton18.ImageFocused = null; this.mediaButton18.ImagePadding = new System.Windows.Forms.Padding(8); this.mediaButton18.Location = new System.Drawing.Point(362, 36); this.mediaButton18.ResizeOnLoad = false; this.mediaButton18.Size = new System.Drawing.Size(64, 64); this.mediaButton18.Style = PWR_UI.MediaButton.ButtonStyle.MenuButton; this.mediaButton18.TabIndex = 1134; this.mediaButton18.TextAlign = PWR_UI.MediaButton.Alignment.BottomRight; this.mediaButton18.TextPadding = new System.Windows.Forms.Padding(4); toolTip1.SetToolTip(mediaButton18, "View_Thumnails"); mediaButton18.Click += new EventHandler(mediaButton18_Click); this.Controls.Add(mediaButton18); // // mediaButton17 // mediaButton17 = new MediaButton(); this.mediaButton17.AutoScrollMargin = new System.Drawing.Size(0, 0); this.mediaButton17.AutoScrollMinSize = new System.Drawing.Size(0, 0); this.mediaButton17.BorderStyle = PWR_UI.BorderStyle.Thin; this.mediaButton17.CheckStyle = false; this.mediaButton17.ContextMenuStrip = null; this.mediaButton17.DisabledForeColor = System.Drawing.Color.DarkGray; this.mediaButton17.FocusedForeColor = System.Drawing.Color.WhiteSmoke; this.mediaButton17.FocusOnClick = false; this.mediaButton17.FocusOnHover = false; this.mediaButton17.Image = global::WindowsFormsApplication9.Properties.Resources.detailed; this.mediaButton17.ImageAlign = PWR_UI.MediaButton.Alignment.MiddleCenter; this.mediaButton17.ImageFocused = null; this.mediaButton17.ImagePadding = new System.Windows.Forms.Padding(8); this.mediaButton17.Location = new System.Drawing.Point(282, 38); this.mediaButton17.ResizeOnLoad = false; this.mediaButton17.Size = new System.Drawing.Size(64, 64); this.mediaButton17.Style = PWR_UI.MediaButton.ButtonStyle.MenuButton; this.mediaButton17.TabIndex = 1133; this.mediaButton17.TextAlign = PWR_UI.MediaButton.Alignment.BottomRight; this.mediaButton17.TextPadding = new System.Windows.Forms.Padding(4); toolTip1.SetToolTip(mediaButton17, " View_Details"); mediaButton17.Click += new EventHandler(mediaButton17_Click); this.Controls.Add(mediaButton17); // // mediaButton14 // mediaButton14 = new MediaButton(); this.mediaButton14.AutoScrollMargin = new System.Drawing.Size(0, 0); this.mediaButton14.AutoScrollMinSize = new System.Drawing.Size(0, 0); this.mediaButton14.BorderStyle = PWR_UI.BorderStyle.Thin; this.mediaButton14.CheckStyle = false; this.mediaButton14.ContextMenuStrip = null; this.mediaButton14.DisabledForeColor = System.Drawing.Color.DarkGray; this.mediaButton14.FocusedForeColor = System.Drawing.Color.WhiteSmoke; this.mediaButton14.FocusOnClick = false; this.mediaButton14.FocusOnHover = false; this.mediaButton14.Image = global::WindowsFormsApplication9.Properties.Resources.add; this.mediaButton14.ImageAlign = PWR_UI.MediaButton.Alignment.MiddleCenter; this.mediaButton14.ImageFocused = null; this.mediaButton14.ImagePadding = new System.Windows.Forms.Padding(8); this.mediaButton14.Location = new System.Drawing.Point(197, 40); this.mediaButton14.ResizeOnLoad = false; this.mediaButton14.Size = new System.Drawing.Size(64, 64); this.mediaButton14.Style = PWR_UI.MediaButton.ButtonStyle.MenuButton; this.mediaButton14.TabIndex = 1132; this.mediaButton14.TextAlign = PWR_UI.MediaButton.Alignment.BottomRight; this.mediaButton14.TextPadding = new System.Windows.Forms.Padding(4); toolTip1.SetToolTip(mediaButton14, "AddImage"); mediaButton14.Click += new EventHandler(mediaButton14_Click); this.Controls.Add(mediaButton14); // //combobox2 // combobox2 = new ComboBox(); combobox2.FormattingEnabled = true; combobox2.Items.AddRange(new object[] { "48x48", "96x96", "120x120", "150x150", "200x200"}); combobox2.Location = new System.Drawing.Point(685, 44); combobox2.Size = new System.Drawing.Size(121, 21); combobox2.TabIndex = 1121; combobox2.Text = "Select Size"; combobox2.SelectedIndexChanged += new EventHandler(combobox2_SelectedIndexChanged); this.Controls.Add(combobox2); // //combobox render // render = new ComboBox(); render.FormattingEnabled = true; render.Items.AddRange(new object[] { "DefaultRenderer", "NewYear2010Renderer", "NoirRenderer", "TilesRenderer", "XPRenderer", "ZoomingRenderer"}); render.Location = new System.Drawing.Point(685, 70); render.Size = new System.Drawing.Size(121, 21); render.Text = "Select Renderer"; render.SelectedIndexChanged += new EventHandler(render_SelectedIndexChanged); this.Controls.Add(render); //textsize // textsize = new Label(); textsize.Font = new System.Drawing.Font("VNI-Fato", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); textsize.ForeColor = System.Drawing.SystemColors.ButtonHighlight; textsize.Location = new System.Drawing.Point(598, 39); textsize.Size = new System.Drawing.Size(64, 26); textsize.TabIndex = 1133; textsize.Text = "SIZE"; this.Controls.Add(textsize); // //textrender // textrender = new Label(); textrender.Font = new System.Drawing.Font("VNI-Fato", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); textrender.ForeColor = System.Drawing.SystemColors.ButtonHighlight; textrender.Location = new System.Drawing.Point(598, 67); textrender.Size = new System.Drawing.Size(100, 26); textrender.TabIndex = 1133; textrender.Text = "RENDER"; this.Controls.Add(textrender); // imageListView1 // imageListView2 = new Manina.Windows.Forms.ImageListView(); this.imageListView2.Dock = System.Windows.Forms.DockStyle.Fill; this.imageListView2.HeaderFont = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(162))); this.imageListView2.Location = new System.Drawing.Point(0, 0); this.imageListView2.Size = new System.Drawing.Size(810, 562); Manina.Windows.Forms.ImageListViewRenderers.NoirRenderer re = new Manina.Windows.Forms.ImageListViewRenderers.NoirRenderer(); imageListView2.SetRenderer(re); //imageListView2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(8)))), ((int)(((byte)(42)))), ((int)(((byte)(105))))); this.imageListView2.TabIndex = 2; this.imageListView2.Text = ""; // //panel3 // panel3 = new Panel(); this.panel3.Controls.Add(this.imageListView2); this.panel3.Location = new System.Drawing.Point(192, 132); this.panel3.Name = "panel3"; this.panel3.Size = new System.Drawing.Size(830, 600); this.panel3.TabIndex = 1131; this.Controls.Add(panel3); }
private void mediaButton4_MouseClick(object sender, MouseEventArgs e) { button = 4; player_hide_show(true); lyric_hide_show(true); pic_hide_show(true); Hidelibrary(flaglibrary); flaglibrary = false; Hidepicture(flagpicture); flagpicture = false; if (flag > 4) { this.mediaButton9.Image = global::WindowsFormsApplication9.Properties.Resources.music; this.mediaButton9.ImageFocused = global::WindowsFormsApplication9.Properties.Resources.musicactive; MediaButton[] bt = new MediaButton[] { mediaButton1, mediaButton2, mediaButton3, mediaButton4, mediaButton5, mediaButton6, mediaButton7 }; move_down(ref bt, 80 * (flag - 4), 3); flag = 4; bt = new MediaButton[] { mediaButton5, mediaButton6, mediaButton7 }; move_down(ref bt, 160, 0); } else if (flag < 4) { this.mediaButton9.Image = global::WindowsFormsApplication9.Properties.Resources.music; this.mediaButton9.ImageFocused = global::WindowsFormsApplication9.Properties.Resources.musicactive; MediaButton[] bt = new MediaButton[] { mediaButton1, mediaButton2, mediaButton3, mediaButton4, mediaButton5, mediaButton6, mediaButton7 }; move_up(ref bt, 80 * (4 - flag), 4); flag = 4; bt = new MediaButton[] { mediaButton1, mediaButton2, mediaButton3, mediaButton4 }; move_up(ref bt, 160, 0); } }
private void mediaButton2_MouseClick(object sender, MouseEventArgs e) { button = 2; player_hide_show(true); lyric_hide_show(true); pic_hide_show(true); Hidepicture(flagpicture); flagpicture = false; if (flag > 2) { this.mediaButton9.Image = global::WindowsFormsApplication9.Properties.Resources.media; this.mediaButton9.ImageFocused = global::WindowsFormsApplication9.Properties.Resources.mediaactive; this.mediaButton13.Image = global::WindowsFormsApplication9.Properties.Resources.search; this.mediaButton13.ImageFocused = global::WindowsFormsApplication9.Properties.Resources.search; MediaButton[] bt = new MediaButton[] { mediaButton1, mediaButton2, mediaButton3, mediaButton4, mediaButton5, mediaButton6, mediaButton7 }; move_down(ref bt, 80 * (flag - 2), 1); flag = 2; bt = new MediaButton[] { mediaButton3, mediaButton4, mediaButton5, mediaButton6, mediaButton7 }; move_down(ref bt, 160, 0); } else if (flag < 2) { this.mediaButton9.Image = global::WindowsFormsApplication9.Properties.Resources.media; this.mediaButton9.ImageFocused = global::WindowsFormsApplication9.Properties.Resources.mediaactive; this.mediaButton13.Image = global::WindowsFormsApplication9.Properties.Resources.search; this.mediaButton13.ImageFocused = global::WindowsFormsApplication9.Properties.Resources.search; MediaButton[] bt = new MediaButton[] { mediaButton1, mediaButton2, mediaButton3, mediaButton4, mediaButton5, mediaButton6, mediaButton7 }; move_up(ref bt, 80 * (2 - flag), 2); flag = 2; bt = new MediaButton[] { mediaButton1, mediaButton2 }; move_up(ref bt, 160, 0); } }
private void mediaButton1_MouseClick(object sender, MouseEventArgs e) { button = 1; player_hide_show(true); lyric_hide_show(true); pic_hide_show(false); Hidelibrary(flaglibrary); flaglibrary = false; if (flag > 1) { MediaButton[] bt = new MediaButton[] { mediaButton1, mediaButton2, mediaButton3, mediaButton4, mediaButton5, mediaButton6, mediaButton7 }; move_down(ref bt, 80 * (flag - 1), 0); flag = 1; bt = new MediaButton[] { mediaButton2, mediaButton3, mediaButton4, mediaButton5, mediaButton6, mediaButton7 }; move_down(ref bt, 160, 0); this.mediaButton9.Image = global::WindowsFormsApplication9.Properties.Resources.Applications; this.mediaButton9.ImageFocused = global::WindowsFormsApplication9.Properties.Resources.Applications; this.mediaButton13.Image = global::WindowsFormsApplication9.Properties.Resources.Pictures; this.mediaButton13.ImageFocused = global::WindowsFormsApplication9.Properties.Resources.Pictures; } }