Inheritance: System.Windows.Forms.Form
Exemple #1
0
 private void btnAddParameter_Click(object sender, EventArgs e)
 {
     var editor = new fmParameterEditor(new ApiParameter());
     if (editor.ShowDialog() == DialogResult.OK)
     {
         SetDataModified();
         lstParameters.Items.Add(editor.EditedParameter);
     }
 }
Exemple #2
0
        private void btnAddParameter_Click(object sender, EventArgs e)
        {
            var editor = new fmParameterEditor(new ApiParameter());

            if (editor.ShowDialog() == DialogResult.OK)
            {
                SetDataModified();
                lstParameters.Items.Add(editor.EditedParameter);
            }
        }
Exemple #3
0
        private void btnEditParam_Click(object sender, EventArgs e)
        {
            if (lstParameters.SelectedItem == null)
                return;

            var editor = new fmParameterEditor((ApiParameter)lstParameters.SelectedItem);
            if (editor.ShowDialog() == DialogResult.OK)
            {
                int index = lstParameters.SelectedIndex;
                lstParameters.Items[index] = editor.EditedParameter;
                SetDataModified();
            }
        }
Exemple #4
0
        private void btnEditParam_Click(object sender, EventArgs e)
        {
            if (lstParameters.SelectedItem == null)
            {
                return;
            }

            var editor = new fmParameterEditor((ApiParameter)lstParameters.SelectedItem);

            if (editor.ShowDialog() == DialogResult.OK)
            {
                int index = lstParameters.SelectedIndex;
                lstParameters.Items[index] = editor.EditedParameter;
                SetDataModified();
            }
        }