private void AddNewDrama_Click(object sender, EventArgs e) //添加新番标签点击事件 { if (Main.dramaManager.Controls.Contains(singleDramaInfoShowEnbody)) //检索是否有单个番剧信息控件加载 { Main.dramaManager.Controls.Remove(singleDramaInfoShowEnbody); } singleDramaInfoShowEnbody = new singleDramaInfoShow(); singleDramaInfoShowEnbody.Location = new Point(210, 0); Main.dramaManager.Controls.Add(singleDramaInfoShowEnbody); flowLayoutPanel_mulitDramaContainer.Controls.Clear(); //清空容器中的所有已装载数据 }
private void Drama_Click(object sender, EventArgs e) //番剧标签点击事件 { if (Main.dramaManager.Controls.Contains(singleDramaInfoShowEnbody)) //检索是否有单个番剧信息控件加载 { Main.dramaManager.Controls.Remove(singleDramaInfoShowEnbody); } labelWithSaveMessage temp = (labelWithSaveMessage)sender; //获取当前被点击的番剧标签 singleDramaInfoShowEnbody = new singleDramaInfoShow(temp.DramaInfo); //将标签中含有的信息传入目标控件中 singleDramaInfoShowEnbody.Location = new Point(210, 0); Main.dramaManager.Controls.Add(singleDramaInfoShowEnbody); }