Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/LicenseConfirmationBox.cs @ 3051

Last change on this file since 3051 was 3009, checked in by gkronber, 15 years ago

improved license dialog. #891 (Refactor GUI for plugin management)

File size: 1.0 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.ComponentModel;
4using System.Data;
5using System.Drawing;
6using System.Linq;
7using System.Text;
8using System.Windows.Forms;
9
10namespace HeuristicLab.PluginInfrastructure.Advanced {
11  public partial class LicenseConfirmationBox : Form {
12    public LicenseConfirmationBox() {
13      InitializeComponent();
14    }
15
16    public LicenseConfirmationBox(IPluginDescription plugin) {
17      InitializeComponent();
18      richTextBox.Text = plugin.LicenseText;
19      this.Text = plugin.ToString();
20      this.DialogResult = DialogResult.Cancel;
21    }
22
23    private void acceptButton_Click(object sender, EventArgs e) {
24      DialogResult = DialogResult.OK;
25      this.Close();
26    }
27
28    private void rejectButton_Click(object sender, EventArgs e) {
29      DialogResult = DialogResult.Cancel;
30      this.Close();
31    }
32
33    private void radioButton1_CheckedChanged(object sender, EventArgs e) {
34      acceptButton.Enabled = acceptRadioButton.Checked;
35    }
36  }
37}
Note: See TracBrowser for help on using the repository browser.