private void UpdateCustomText() { string xml = trigger == null?EventTrigger.BuildQuery((string)onEventLogCombo.SelectedValue, onEventSourceCombo.Text.Length == 0?null : onEventSourceCombo.Text, EventId) : trigger.Subscription; onEventCustomText.Text = GetFormattedXmlString(xml); }