@@ -31,13 +31,13 @@ public DNSSettingWindow()
3131 this . Bind ( ViewModel , vm => vm . AddCommonHosts , v => v . togAddCommonHosts . IsChecked ) . DisposeWith ( disposables ) ;
3232 this . Bind ( ViewModel , vm => vm . FakeIP , v => v . togFakeIP . IsChecked ) . DisposeWith ( disposables ) ;
3333 this . Bind ( ViewModel , vm => vm . BlockBindingQuery , v => v . togBlockBindingQuery . IsChecked ) . DisposeWith ( disposables ) ;
34- this . Bind ( ViewModel , vm => vm . DirectDNS , v => v . cmbDirectDNS . Text ) . DisposeWith ( disposables ) ;
35- this . Bind ( ViewModel , vm => vm . RemoteDNS , v => v . cmbRemoteDNS . Text ) . DisposeWith ( disposables ) ;
36- this . Bind ( ViewModel , vm => vm . BootstrapDNS , v => v . cmbBootstrapDNS . Text ) . DisposeWith ( disposables ) ;
37- this . Bind ( ViewModel , vm => vm . Strategy4Freedom , v => v . cmbDirectDNSStrategy . Text ) . DisposeWith ( disposables ) ;
38- this . Bind ( ViewModel , vm => vm . Strategy4Proxy , v => v . cmbRemoteDNSStrategy . Text ) . DisposeWith ( disposables ) ;
34+ this . Bind ( ViewModel , vm => vm . DirectDNS , v => v . cmbDirectDNS . SelectedItem ) . DisposeWith ( disposables ) ;
35+ this . Bind ( ViewModel , vm => vm . RemoteDNS , v => v . cmbRemoteDNS . SelectedItem ) . DisposeWith ( disposables ) ;
36+ this . Bind ( ViewModel , vm => vm . BootstrapDNS , v => v . cmbBootstrapDNS . SelectedItem ) . DisposeWith ( disposables ) ;
37+ this . Bind ( ViewModel , vm => vm . Strategy4Freedom , v => v . cmbDirectDNSStrategy . SelectedItem ) . DisposeWith ( disposables ) ;
38+ this . Bind ( ViewModel , vm => vm . Strategy4Proxy , v => v . cmbRemoteDNSStrategy . SelectedItem ) . DisposeWith ( disposables ) ;
3939 this . Bind ( ViewModel , vm => vm . Hosts , v => v . txtHosts . Text ) . DisposeWith ( disposables ) ;
40- this . Bind ( ViewModel , vm => vm . DirectExpectedIPs , v => v . cmbDirectExpectedIPs . Text ) . DisposeWith ( disposables ) ;
40+ this . Bind ( ViewModel , vm => vm . DirectExpectedIPs , v => v . cmbDirectExpectedIPs . SelectedItem ) . DisposeWith ( disposables ) ;
4141 this . Bind ( ViewModel , vm => vm . ParallelQuery , v => v . togParallelQuery . IsChecked ) . DisposeWith ( disposables ) ;
4242 this . Bind ( ViewModel , vm => vm . ServeStale , v => v . togServeStale . IsChecked ) . DisposeWith ( disposables ) ;
4343
0 commit comments