상속: System.Windows.Forms.Form
        private void OnNewReplacementParam(object sender, EventArgs e)
        {
            TemplatorParameterDetails dlg = new TemplatorParameterDetails();

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                replacementParameters.Items.Add(new ListViewItem(new [] { dlg.ParamName, dlg.ParamRegex }));
            }
        }
예제 #2
0
 private void OnEditReplacementParam(object sender, EventArgs e)
 {
     System.Diagnostics.Debug.Assert(replacementParameters.SelectedItems.Count == 1);
     ListViewItem item = replacementParameters.SelectedItems[0];
     TemplatorParameterDetails dlg = new TemplatorParameterDetails(item.SubItems[0].Text, item.SubItems[1].Text);
     if (dlg.ShowDialog() == DialogResult.OK)
     {
         item.SubItems[0].Text = dlg.ParamName;
         item.SubItems[1].Text = dlg.ParamRegex;
     }
 }
        private void OnEditReplacementParam(object sender, EventArgs e)
        {
            System.Diagnostics.Debug.Assert(replacementParameters.SelectedItems.Count == 1);
            ListViewItem item             = replacementParameters.SelectedItems[0];
            TemplatorParameterDetails dlg = new TemplatorParameterDetails(item.SubItems[0].Text, item.SubItems[1].Text);

            if (dlg.ShowDialog() == DialogResult.OK)
            {
                item.SubItems[0].Text = dlg.ParamName;
                item.SubItems[1].Text = dlg.ParamRegex;
            }
        }
예제 #4
0
 private void OnNewReplacementParam(object sender, EventArgs e)
 {
     TemplatorParameterDetails dlg = new TemplatorParameterDetails();
     if (dlg.ShowDialog() == DialogResult.OK)
         replacementParameters.Items.Add(new ListViewItem(new [] { dlg.ParamName, dlg.ParamRegex }));
 }