Free cookie consent management tool by TermsFeed Policy Generator

source: branches/Mainform refactoring/HeuristicLab.MainForm.Test/3.2/EditorView.cs @ 2426

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