Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.PluginInfrastructure/Advanced/ConfirmationDialog.cs @ 3069

Last change on this file since 3069 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 
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 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.