Last change
on this file since 2426 was
2426,
checked in by mkommend, 15 years ago
|
initial version of refactored mainform (ticket #771)
|
File size:
885 bytes
|
Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 | using System.ComponentModel;
|
---|
4 | using System.Drawing;
|
---|
5 | using System.Data;
|
---|
6 | using System.Linq;
|
---|
7 | using System.Text;
|
---|
8 | using System.Windows.Forms;
|
---|
9 | using HeuristicLab.MainForm.WindowsForms;
|
---|
10 |
|
---|
11 | namespace HeuristicLab.MainForm.Test {
|
---|
12 | public partial class EditorView : ViewBase {
|
---|
13 | public EditorView() {
|
---|
14 | InitializeComponent();
|
---|
15 | }
|
---|
16 |
|
---|
17 | private void ChangeStateButton_Click(object sender, EventArgs e) {
|
---|
18 | this.OnChanged();
|
---|
19 | }
|
---|
20 |
|
---|
21 | public override void OnClosing(object sender, CancelEventArgs e) {
|
---|
22 | if (DialogResult.Yes != MessageBox.Show(
|
---|
23 | "Recent changes have not been saved. Close the editor anyway?", "Close editor?",
|
---|
24 | MessageBoxButtons.YesNo, MessageBoxIcon.Question,
|
---|
25 | MessageBoxDefaultButton.Button2)) {
|
---|
26 |
|
---|
27 | e.Cancel = true;
|
---|
28 |
|
---|
29 | }
|
---|
30 | }
|
---|
31 | }
|
---|
32 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.