mirror of
https://github.com/2dust/v2rayN.git
synced 2026-10-02 11:48:03 +03:00
26 lines
800 B
C#
26 lines
800 B
C#
namespace v2rayN.Desktop.Views;
|
|
|
|
public partial class NetBridgeView : ReactiveUserControl<NetBridgeViewModel>
|
|
{
|
|
public NetBridgeView()
|
|
{
|
|
InitializeComponent();
|
|
|
|
ViewModel = new NetBridgeViewModel(UpdateViewHandler);
|
|
|
|
this.WhenActivated(disposables =>
|
|
{
|
|
this.BindCommand(ViewModel, vm => vm.SaveRulesCmd, v => v.btnSave).DisposeWith(disposables);
|
|
|
|
this.Bind(ViewModel, vm => vm.EnableNetBridge, v => v.togEnableNetBridge.IsChecked).DisposeWith(disposables);
|
|
|
|
this.Bind(ViewModel, vm => vm.RuleProcess, v => v.txtRuleProcess.Text).DisposeWith(disposables);
|
|
});
|
|
}
|
|
|
|
private async Task<bool> UpdateViewHandler(EViewAction action, object? obj)
|
|
{
|
|
return await Task.FromResult(true);
|
|
}
|
|
}
|