コード例 #1
0
 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();
 }
コード例 #2
0
 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");
 }
コード例 #3
0
 private void SettingsDialog_Load(object sender, EventArgs e)
 {
     this.cbxTelemetry.Checked = Telemetry.status();
 }