Ejemplo n.º 1
0
        void btnDownload_Click(object sender, RoutedEventArgs e)
        {
            string currentDownloadID = SaveDownload();

            Mackerel.StartDownload(currentDownloadID);
            this.Close();
        }
Ejemplo n.º 2
0
 void OnEnable()
 {
     mackerel         = Mackerel.Instance;
     mackerel.showLog = true;
     if (string.IsNullOrEmpty(apikey))
     {
         Debug.LogError("Enter your APIKEY");
     }
     else
     {
         mackerel.Initialize(apikey);
     }
 }
Ejemplo n.º 3
0
 private void Pause_Click(object sender, RoutedEventArgs e)
 {
     if (!paused)
     {
         currentDownload.StopDownload();
         TaskbarItemInfo.ProgressState = TaskbarItemProgressState.Paused;
         Status.Text   = "Paused";
         Pause.Content = "Resume";
         paused        = true;
     }
     else
     {
         Mackerel.StartDownloadResumeStyle(downloadData.DownloadID);
         TaskbarItemInfo.ProgressState = TaskbarItemProgressState.Normal;
         Status.Text   = "Receiving data...";
         Pause.Content = "Pause";
         paused        = false;
     }
 }