This commit is contained in:
Jake Norbut committed 2018-10-01 09:28:32 -05:00
1 parent ef03b87357
commit 08a6daab00
1 file changed
-3
@@ -48,8 +48,6 @@ namespace mbts.spark {
_init_guard.check_access();
Log.notnull(_state);
var state_src = Observable.FromEvent<Action<FillsWindowFactory.StartupData>, FillsWindowFactory.StartupData>(cb => _state_changed += cb, cb => _state_changed -= cb).StartWith(_state);
// Jake: on Monday start passing _state_src to the VM, do the OnDispatcher in the VM too
// there is probably other crap too
_vm = new FillsVM(_bus, _orders_model, state_src, _state, _settings_manager);
_view = new FillsView { DataContext = _vm };
@@ -77,7 +75,6 @@ namespace mbts.spark {
public override void Dispose() {
Disposable.dispose(ref _vm);
//_vm.Dispose();
Commands.OfType<IDisposable>().DisposeAll();
}
}