void btnDownload_Click(object sender, RoutedEventArgs e) { string currentDownloadID = SaveDownload(); Mackerel.StartDownload(currentDownloadID); this.Close(); }
void OnEnable() { mackerel = Mackerel.Instance; mackerel.showLog = true; if (string.IsNullOrEmpty(apikey)) { Debug.LogError("Enter your APIKEY"); } else { mackerel.Initialize(apikey); } }
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; } }