コード例 #1
0
 public void TitleImageSelected(TitleImageOfCostumeClass selectedTitle, EventArgs args)
 {
     selectedTitleImage = selectedTitle;
     foreach (TitleImageOfCostumeClass item in this.images)
     {
         if (item != selectedTitle)
         {
             item.Selected = false;
         }
     }
 }
コード例 #2
0
        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;
        }
コード例 #3
0
 public void RemoveTitleImage(TitleImageOfCostumeClass image)
 {
     this.flowLayoutPanel1.Controls.Add(image);
 }
コード例 #4
0
 public void TitleImageRemoved(TitleImageOfCostumeClass selectedTitle, EventArgs args)
 {
     this.images.Remove(selectedTitle);
 }