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