Compass.Coondornator.CoondornatorForm.button2_Click C# (CSharp) Method

button2_Click() private method

private button2_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
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);
        }