Ejemplo n.º 1
0
        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()));
                });
        }
Ejemplo n.º 2
0
 public OutputViewModel()
 {
     DisplayName = Resources.OutputDisplayName;
     _stringBuilder = new StringBuilder();
     _writer = new OutputWriter(this);
 }
Ejemplo n.º 3
0
 public OutputViewModel()
 {
     DisplayName = "Output";
     _stringBuilder = new StringBuilder();
     _writer = new OutputWriter(this);
 }
Ejemplo n.º 4
0
 public OutputViewModel()
 {
     DisplayName    = "Output";
     _stringBuilder = new StringBuilder();
     _writer        = new OutputWriter(this);
 }
Ejemplo n.º 5
0
 public OutputViewModel()
 {
     DisplayName = Resources.OutputDisplayName;
     _writer     = new OutputWriter(this);
     Clear();
 }