コード例 #1
0
 void wbDict_IsBrowserInitializedChanged(object sender, DependencyPropertyChangedEventArgs e)
 {
     if (!(bool)e.NewValue)
     {
         return;
     }
     vm.WhenAnyValue(x => x.ResultHtml).Subscribe(_ => Load());
 }
コード例 #2
0
 public TransformSourceControl(TransformEditViewModelWPF vm)
 {
     InitializeComponent();
     DataContext = this.vm = vm;
     vm.WhenAnyValue(x => x.SourceUrl).Where(s => !string.IsNullOrEmpty(s)).Subscribe(_ => Load());
 }