Free cookie consent management tool by TermsFeed Policy Generator

source: trunk/sources/HeuristicLab.Communication.Data/WindowedView.cs @ 1259

Last change on this file since 1259 was 704, checked in by abeham, 16 years ago

[TICKET #297] communication restructuring

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.