public void run()
  {
    while ((this.Running) && (this.CurrentIndex < this.Indexes.length))
    {
      if (nextImage()) {
        this.Running = false;
      }
      if (!this.Running) {
        break;
      }
      if (this.Delays != null) {
        try
        {
          Thread.currentThread(); Thread.sleep(this.Delays[this.CurrentIndex]);
        }
        catch (InterruptedException localInterruptedException)
        {
          localInterruptedException.printStackTrace();
        }
      }
      if (!this.Running)
        return; 
    }
  }