Exemplo n.º 1
0
 private void SpoilerSlider_SaveChange()
 {
     if (spoilerSlider.CurrentSlide.name != null)
     {
         SpoilersItem item = new SpoilersItem();
         item.name    = textBox_NameSpoiler.Text;
         item.content = textBox_SpoilerContent.Text;
         spoilerSlider.CurrentSlide = item;
     }
 }
Exemplo n.º 2
0
 private void SpoilerSlider_onChangeSlide(object sender, EventArgs e)
 {
     if (spoilerSlider.CurrentSlide.name != null)
     {
         SpoilersItem item = spoilerSlider.CurrentSlide;
         textBox_NameSpoiler.Text    = item.name;
         textBox_SpoilerContent.Text = item.content;
         label_NumberSpoiler.Text    = string.Format("{0}//{1}", spoilerSlider.IndexSlides + 1, spoilerSlider.SlidesCount);
     }
     else
     {
         textBox_NameSpoiler.Text    = "";
         textBox_SpoilerContent.Text = "";
         label_NumberSpoiler.Text    = string.Format("{0}//{1}", spoilerSlider.IndexSlides, spoilerSlider.SlidesCount);
     }
 }