Free cookie consent management tool by TermsFeed Policy Generator

source: branches/CEDMA-Exporter-715/sources/HeuristicLab.Communication.Data/3.2/WindowedView.cs @ 2227

Last change on this file since 2227 was 1529, checked in by gkronber, 16 years ago

Moved source files of plugins AdvancedOptimizationFrontEnd ... Grid into version-specific sub-folders. #576

File size: 929 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.ComponentModel;
4using System.Data;
5using System.Drawing;
6using System.Text;
7using System.Windows.Forms;
8using HeuristicLab.Core;
9
10namespace HeuristicLab.Communication.Data {
11  public partial class WindowedView : Form {
12    public WindowedView() {
13      InitializeComponent();
14    }
15
16    public WindowedView(UserControl control)
17      : this() {
18      this.SuspendLayout();
19      this.Size = new Size(control.Width + 8, control.Height + 70);
20      control.Dock = DockStyle.Fill;
21      viewPanel.Controls.Add(control);
22      this.ResumeLayout();
23    }
24
25    private void saveButton_Click(object sender, EventArgs e) {
26      this.DialogResult = DialogResult.OK;
27      this.Close();
28    }
29
30    private void cancelButton_Click(object sender, EventArgs e) {
31      this.DialogResult = DialogResult.Cancel;
32      this.Close();
33    }
34  }
35}
Note: See TracBrowser for help on using the repository browser.