Rev | Line | |
---|
[704] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.ComponentModel;
|
---|
| 4 | using System.Data;
|
---|
| 5 | using System.Drawing;
|
---|
| 6 | using System.Text;
|
---|
| 7 | using System.Windows.Forms;
|
---|
| 8 | using HeuristicLab.Core;
|
---|
| 9 |
|
---|
| 10 | namespace 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.