Wpf/EqDemoWpfNet5/EasyQueryPage.xaml.cs
/// <summary>
/// An example of CUSTOM value editor processing. 
/// This an event handler for SimpleConditionRow.ValueRequestEvent which is raised when we click on element with "CUSTOM" value editor.
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
An example of CUSTOM value editor processing.
This an event handler for SimpleConditionRow.ValueRequestEvent which is raised when we click on element with "CUSTOM" value editor.
An example of CUSTOM value editor processing . This an event handler for SimpleConditionRow . ValueRequestEvent which is raised when we click on element with " CUSTOM " value editor .
private void queryPanel_CustomValueRequest(object sender, ValueRequestEventArgs e)
        {
            var postalCodeDlg = new PostalCodeDialog();
            postalCodeDlg.Owner = Window.GetWindow(this);
            bool? res = postalCodeDlg.ShowDialog();
            if (res != null && res.Value)
            {
                var district = postalCodeDlg.SelectedDistrict;
                e.Value = district.Code;
                e.Text = district.Name;
            }
        }
private void queryPanel_CustomValueRequest ( object sender , ValueRequestEventArgs e ) { var postalCodeDlg = new PostalCodeDialog ( ) ; postalCodeDlg . Owner = Window . GetWindow ( this ) ; bool ? res = postalCodeDlg . ShowDialog ( ) ; if ( res != null && res . Value ) { var district = postalCodeDlg . SelectedDistrict ; e . Value = district . Code ; e . Text = district . Name ; } }
An example of CUSTOM value editor processing.
An example of CUSTOM value editor processing .
sender
object
None
e
ValueRequestEventArgs
None