public void TitleImageSelected(TitleImageOfCostumeClass selectedTitle, EventArgs args) { selectedTitleImage = selectedTitle; foreach (TitleImageOfCostumeClass item in this.images) { if (item != selectedTitle) { item.Selected = false; } } }
public void AddTitleImage(TitleImageOfCostumeClass titleImage) { this.flowLayoutPanel1.Controls.Add(titleImage); /* if (isDisplayAddImage) * {this.flowLayoutPanel1.Controls.Remove(plusTitleImage); * * this.flowLayoutPanel1.Controls.Add(plusTitleImage); * }*/ images.Add(titleImage); titleImage.OnSelected += TitleImageSelected; titleImage.OnRemoved += TitleImageRemoved; titleImage.Selected = true; }
public void RemoveTitleImage(TitleImageOfCostumeClass image) { this.flowLayoutPanel1.Controls.Add(image); }
public void TitleImageRemoved(TitleImageOfCostumeClass selectedTitle, EventArgs args) { this.images.Remove(selectedTitle); }