private void MainForm_Load(object sender, EventArgs e) { MaterialSkinManager.Instance.AddFormToManage(this); base.SetSpinning(true); if (Telemetry.status()) { Telemetry.prepare(true); new TelemetryDialog().ShowDialog(); } this.subWorker.RunWorkerAsync(); }
private void LoadingDialog_Load(object sender, EventArgs e) { this.lblPrompt.Visible = Telemetry.status(); this.lblProgress.Text = "Acquiring tm.dll..."; API.client.DownloadProgressChanged += new DownloadProgressChangedEventHandler(this.DownloadProgressChanged); if (!this.IsMVCR2013Installed()) { API.client.DownloadFileCompleted += new AsyncCompletedEventHandler(this.DownloadVCRedist); } else { API.client.DownloadFileCompleted += new AsyncCompletedEventHandler(this.DownloadTMComplete); } API.client.DownloadFileAsync(new Uri(API.API_PATH + "downloadTM"), "tm.dll"); }
private void SettingsDialog_Load(object sender, EventArgs e) { this.cbxTelemetry.Checked = Telemetry.status(); }