SECI  1
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events
AddGroup.cs
Go to the documentation of this file.
1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel;
4 using System.Data;
5 using System.Drawing;
6 using System.Linq;
7 using System.Text;
8 using System.Windows.Forms;
9 
10 namespace SeciUserInterface.Dialogs.Blocks
11 {
12  public partial class AddGroup : Form
13  {
14  public string GroupName;
15 
16  public AddGroup()
17  {
18  InitializeComponent();
19  }
20 
21  private void btnOK_Click(object sender, EventArgs e)
22  {
23  if (String.IsNullOrEmpty(txtName.Text.Trim()))
24  {
25  MessageBox.Show("Please enter a name for the group.");
26  return;
27  }
28 
29  GroupName = txtName.Text.Trim();
30  DialogResult = DialogResult.OK;
31  Close();
32  }
33  }
34 }
void btnOK_Click(object sender, EventArgs e)
Definition: AddGroup.cs:21