private button2_Click ( object sender, |
||
sender | object | |
e | ||
return | void |
private void button2_Click(object sender, EventArgs e)
{
string name = saveLineTB.Text;
if (string.IsNullOrWhiteSpace(name))
{
MessageBox.Show("You must provide a non-null name to save this parameter line");
return;
}
string line = textBox3.Text;
if (!OmssaParameterLine.Validate(line))
{
MessageBox.Show("The provided parameter line cannot be correctly parsed. Please fix before saving");
return;
}
OmssaParameterLine.AddLine(name, line);
}