Exemple #1
0
 protected void lstStandardExpressions_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (!this.settingValue && (this.lstStandardExpressions.SelectedIndex >= 1))
     {
         CannedExpression selectedItem = (CannedExpression)this.lstStandardExpressions.SelectedItem;
         this.settingValue       = true;
         this.txtExpression.Text = selectedItem.Expression;
         this.settingValue       = false;
     }
 }
Exemple #2
0
 /// <include file='doc\RegexEditorDialog.uex' path='docs/doc[@for="RegexEditorDialog.lstStandardExpressions_SelectedIndexChanged"]/*' />
 /// <internalonly/>
 /// <devdoc>
 ///    <para>[To be supplied.]</para>
 /// </devdoc>
 protected void lstStandardExpressions_SelectedIndexChanged(object sender, System.EventArgs e)
 {
     if (settingValue)
     {
         return;
     }
     // first item should always be "(Custom)"
     if (lstStandardExpressions.SelectedIndex >= 1)
     {
         CannedExpression expression = (CannedExpression)lstStandardExpressions.SelectedItem;
         settingValue       = true;
         txtExpression.Text = expression.Expression;
         settingValue       = false;
     }
 }