improve ui
This commit is contained in:
@ -13,13 +13,19 @@ public partial class MainWindow : ReactiveWindow<MainWindowViewModel>
|
||||
{
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
this.WhenActivated(disposables =>
|
||||
{
|
||||
this.OneWayBind(ViewModel, vm => vm.DbPath, v => v.DbPath.Text)
|
||||
.DisposeWith(disposables);
|
||||
|
||||
this.BindCommand(ViewModel, vm => vm.NewCommand, v => v.NewButton)
|
||||
.DisposeWith(disposables);
|
||||
|
||||
this.BindCommand(ViewModel, vm => vm.OpenCommand, v => v.OpenButton)
|
||||
.DisposeWith(disposables);
|
||||
});
|
||||
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user