Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Data/View/CommandViewDialog.cs @ 6133

Last change on this file since 6133 was 6133, checked in by gkronber, 13 years ago

#1471: imported generic parts of DataImporter from private code base

File size: 754 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.ComponentModel;
4using System.Data;
5using System.Drawing;
6using System.Linq;
7using System.Text;
8using System.Windows.Forms;
9
10namespace HeuristicLab.DataImporter.Data.View {
11  public partial class CommandViewDialog : Form {
12    public CommandViewDialog() {
13      InitializeComponent();
14      this.FormBorderStyle = FormBorderStyle.FixedDialog;
15    }
16
17    private void Panel_ControlAdded(object sender, ControlEventArgs e) {
18      int width = e.Control.Size.Width + 10;
19      int heigth = e.Control.Size.Height + 80;
20      Panel.Size = new Size(e.Control.Size.Width, e.Control.Size.Height);
21      this.Size = new Size(width, heigth);
22      this.Refresh();
23    }
24  }
25}
Note: See TracBrowser for help on using the repository browser.