Beispiel #1
0
 private void miDelay_Click(object sender, EventArgs e)
 {
     using (var dlg = new DelayForm())
     {
     if (dlg.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
     {
         for (int i = 0; i < this.pgc.Chapters.Count; i++)
         {
             if (i == 0 && this.pgc.Chapters[i].Time.TotalSeconds == 0) continue;
             this.pgc.Chapters[i] = new ChapterEntry()
             {
                 Name = this.pgc.Chapters[i].Name,
                 Time = this.pgc.Chapters[i].Time.Add(TimeSpan.FromSeconds(dlg.DelaySeconds)),
             };
         }
         this.FreshChapterView();
     }
     }
 }