Last change
on this file since 3016 was
3009,
checked in by gkronber, 15 years ago
|
improved license dialog. #891 (Refactor GUI for plugin management)
|
File size:
1.0 KB
|
Rev | Line | |
---|
[3006] | 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;
|
---|
[3009] | 19 | this.Text = plugin.ToString();
|
---|
[3006] | 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 | }
|
---|
[3009] | 32 |
|
---|
| 33 | private void radioButton1_CheckedChanged(object sender, EventArgs e) {
|
---|
| 34 | acceptButton.Enabled = acceptRadioButton.Checked;
|
---|
| 35 | }
|
---|
[3006] | 36 | }
|
---|
| 37 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.