Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3.3-Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Console/3.3/AddGroup.cs @ 4424

Last change on this file since 4424 was 4424, checked in by cneumuel, 14 years ago
  • Added and updated License Information in every file
  • Sort and remove usings in every file
  • Deleted obsolete DataAccess.ADOHelper
  • Deleted some obsolete files
File size: 806 bytes
Line 
1using System;
2using System.Windows.Forms;
3
4namespace HeuristicLab.Hive.Server.ServerConsole {
5
6  public delegate void AddGroupDelegate(string name);
7
8  public partial class AddGroup : Form {
9
10    public event AddGroupDelegate addGroupEvent;
11
12    public AddGroup() {
13      InitializeComponent();
14    }
15
16    private void btnAdd_Click(object sender, EventArgs e) {
17      if (addGroupEvent != null) {
18        addGroupEvent(tbName.Text);
19      }
20      this.Close();
21    }
22
23    private void btnClose_Click(object sender, EventArgs e) {
24      this.Close();
25    }
26
27    private void tbName_TextChanged(object sender, EventArgs e) {
28      if (string.IsNullOrEmpty(tbName.Text)) {
29        btnAdd.Enabled = false;
30      } else {
31        btnAdd.Enabled = true;
32      }
33    }
34  }
35}
Note: See TracBrowser for help on using the repository browser.