Beispiel #1
0
 private void TCDLoad_ProgressUpdate(object sender, TextureLoadProgressUpdatedEventArgs e)
 {
     if (e == null)
     {
         this.ProgressUpdated?.Invoke(this, null);
         ((Textures)sender).ProgressUpdated -= this.TCDLoad_ProgressUpdate;
     }
     else
     {
         this.ProgressUpdated?.Invoke(this, new TextureLoadProgressUpdatedEventArgs(e.UpdateLabel, e.UpdateProgress));
     }
 }
Beispiel #2
0
 private void TextureLoad_ProgressUpdate(object sender, TextureLoadProgressUpdatedEventArgs e)
 {
     if (e == null)
     {
         this.textureLoad = true;
         this.UpdateLoadingText(LoadType.Graphics, 100);
         ((IRenderer)sender).ProgressUpdated -= this.TextureLoad_ProgressUpdate;
     }
     else
     {
         this.UpdateLoadingText(LoadType.Graphics, (int)Math.Round(100 * e.UpdateProgress));
     }
 }