コード例 #1
0
 private void InstallationPromptForm_Load(object sender, EventArgs e)
 {
     Text = @$ "{_targetAssembly.Title}: prerequisites missing";
     Icon = IconEx.TryExtractAssociatedIcon(Application.ExecutablePath);
     IconPictureBox.Image = SystemIcons.Warning.ToBitmap();
     MissingPrerequisitesTextBox.Lines = _missingPrerequisites.Select(c => $"• {c.DisplayName}").ToArray();
 }
コード例 #2
0
    private void InstallationForm_Load(object sender, EventArgs e)
    {
        Text = @$ "{_targetAssembly.Title}: installing prerequisites";
        Icon = IconEx.TryExtractAssociatedIcon(Application.ExecutablePath);

        UpdateStatus(@"Preparing installation");

        new Thread(PerformInstall)
        {
            Name         = nameof(PerformInstall),
            IsBackground = true
        }.Start();
    }