-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFormClasificationMethod.cs
49 lines (44 loc) · 1.12 KB
/
FormClasificationMethod.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace PBioManager
{
public partial class FormClasificationMethod : Form
{
public FormClasificationMethod()
{
InitializeComponent();
}
private void Save()
{
if (txtName.Text != null && txtName.Text != "")
{
metodoClasificacionTableAdapter1.Insert(
Guid.NewGuid(),
txtName.Text,
txtDescription.Text,
txtArgs.Text
);
}
else
{
MessageBox.Show(
"Introduce the method's name.",
"Field empty",
MessageBoxButtons.OK,
MessageBoxIcon.Error
);
}
}
private void btnSave_Click(object sender, EventArgs e)
{
Save();
this.Close();
}
}
}