Last change
on this file since 3083 was
3069,
checked in by gkronber, 15 years ago
|
Improved dialogs in plugin manager. #891 (Refactor GUI for plugin management)
|
File size:
977 bytes
|
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 ConfirmationDialog : Form {
|
---|
12 | public ConfirmationDialog() {
|
---|
13 | InitializeComponent();
|
---|
14 | icon.Image = System.Drawing.SystemIcons.Exclamation.ToBitmap();
|
---|
15 | DialogResult = DialogResult.Cancel;
|
---|
16 | }
|
---|
17 |
|
---|
18 | public ConfirmationDialog(string caption, string message, string text)
|
---|
19 | : this() {
|
---|
20 | this.Text = caption;
|
---|
21 | messageLabel.Text = message;
|
---|
22 | informationTextBox.Text = text;
|
---|
23 | }
|
---|
24 |
|
---|
25 | private void okButton_Click(object sender, EventArgs e) {
|
---|
26 | DialogResult = DialogResult.OK;
|
---|
27 | this.Close();
|
---|
28 | }
|
---|
29 |
|
---|
30 | private void cancelButton_Click(object sender, EventArgs e) {
|
---|
31 | DialogResult = DialogResult.Cancel;
|
---|
32 | this.Close();
|
---|
33 | }
|
---|
34 | }
|
---|
35 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.