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 | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.ComponentModel;
|
---|
4 | using System.Data;
|
---|
5 | using System.Drawing;
|
---|
6 | using System.Linq;
|
---|
7 | using System.Text;
|
---|
8 | using System.Windows.Forms;
|
---|
9 |
|
---|
10 | namespace 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.