Exemplo n.º 1
0
        private void okButton_Click(object sender, EventArgs e)
        {
            for (int i = 0; i < _paramInfo.Length; i++)
            {
                ParamInputPanel panel = _paramPanel[i];
                Object          value = panel.GetValue();
                if (value == null)
                {
                    MessageBox.Show(Properties.StringTable.ParameterIsInvalid, panel.Name);
                    return;
                }

                _paramValue[i] = value;
            }

            _sucessed = true;
            Close();
        }
Exemplo n.º 2
0
        private void okButton_Click(object sender, EventArgs e)
        {
            for (int i = 0; i < _paramInfo.Length; i++)
            {
                ParamInputPanel panel = _paramPanel[i];
                Object          value = panel.GetValue();
                if (value == null)
                {
                    MessageBox.Show(String.Format("Parameter {0} is invalid.", panel.Name));
                    return;
                }

                _paramValue[i] = value;
            }

            _sucessed = true;
            Close();
        }