Exemple #1
0
        //test



        #region đổi kích thước của group box khi form resize vì không dùng dock được
        private void home_flowLayoutPanel_Resize(object sender, EventArgs e)
        {
            FlowLayoutPanel panel = sender as FlowLayoutPanel;

            foreach (var item in panel.Controls)
            {
                if (item is HomeItemContainer)
                {
                    HomeItemContainer temp = item as HomeItemContainer;
                    temp.Size = new Size(panel.Size.Width - 15, temp.Size.Height);
                }
            }
        }
Exemple #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     recentlyPlayed.addItem(new PlaylistContainer());
     HomeItemContainer a = new HomeItemContainer();
 }