public InputViewModel() { this.CompositeDisposable.Add(_inputCoreViewModel = new InputCoreViewModel(this)); this.CompositeDisposable.Add(_accountSelectorViewModel = new AccountSelectorViewModel(this)); this.CompositeDisposable.Add(_postLimitPredictionViewModel = new PostLimitPredictionViewModel()); this.CompositeDisposable.Add( new EventListener<Action>( h => InputModel.FocusRequest += h, h => InputModel.FocusRequest -= h, () => { OpenInput(); FocusToTextBox(); })); this.CompositeDisposable.Add( new EventListener<Action>( h => InputModel.CloseRequest += h, h => InputModel.CloseRequest -= h, CloseInput)); this.RegisterKeyAssigns(); }
public InputViewModel() { CompositeDisposable.Add(InputCoreViewModel = new InputCoreViewModel(this)); CompositeDisposable.Add(AccountSelectorViewModel = new AccountSelectorViewModel(this)); CompositeDisposable.Add(PostLimitPredictionViewModel = new PostLimitPredictionViewModel()); CompositeDisposable.Add( new EventListener <Action>( h => InputModel.FocusRequest += h, h => InputModel.FocusRequest -= h, () => { OpenInput(); FocusToTextBox(); })); CompositeDisposable.Add( new EventListener <Action>( h => InputModel.CloseRequest += h, h => InputModel.CloseRequest -= h, CloseInput)); RegisterKeyAssigns(); }