public OutputViewModel() { _stringBuilder = new StringBuilder(); _writer = new OutputWriter(this); Observable.FromEventPattern<EventHandler, EventArgs>(h => TextChanged += h, h => TextChanged -= h) .Throttle(TimeSpan.FromSeconds(1)) .Subscribe(_ => { if (_view != null) Execute.OnUIThread(() => _view.SetText(_stringBuilder.ToString())); }); }
public OutputViewModel() { DisplayName = Resources.OutputDisplayName; _stringBuilder = new StringBuilder(); _writer = new OutputWriter(this); }
public OutputViewModel() { DisplayName = "Output"; _stringBuilder = new StringBuilder(); _writer = new OutputWriter(this); }
public OutputViewModel() { DisplayName = "Output"; _stringBuilder = new StringBuilder(); _writer = new OutputWriter(this); }
public OutputViewModel() { DisplayName = Resources.OutputDisplayName; _writer = new OutputWriter(this); Clear(); }