public static SupportedMethods ( ) : List |
||
Результат | List |
public MainWindow() { this.DataContext = this; InitializeComponent(); this.Services = BackstopRestReportUri.SupportedMethods().Select(u => u.Service).Distinct().ToList(); }
static void SelectedServiceChanged(DependencyObject source, DependencyPropertyChangedEventArgs args) { var this_ = (MainWindow)source; this_.SelectedMethod = null; string value = (string)args.NewValue; if (string.IsNullOrEmpty(value)) { this_.Methods = new List <BackstopRestReportUri>(); } else { this_.Methods = BackstopRestReportUri.SupportedMethods().Where(u => u.Service == value).ToList(); } }