Exemplo n.º 1
0
        protected virtual void FinishLoading(ObservableCollection <IssueModel> issues, Action acknowledgeCallback)
        {
            /*
             *  var timer = new DispatcherTimer();
             *  timer.Interval = TimeSpan.FromMilliseconds(100);
             *  timer.Tick += (s1, e1) =>
             *  {
             *      acknowledgeCallback();
             *      timer.Stop();
             *      timer = null;
             *  };
             *  timer.Start();
             */

            var args = new IssuesCommunicationStateModel(issues);

            args.Acknowledged += (s, e) =>
            {
                this.dispatcher.BeginInvoke(acknowledgeCallback);
            };

            this.OnCommunicationStateChanged(args);
        }
Exemplo n.º 2
0
 public void Resolve(IssuesCommunicationStateModel content)
 {
     this.model.UnregisterAcknowledgeableCommunicationState(content);
 }
 public void Resolve(IssuesCommunicationStateModel content)
 {
     this.Result = true;
 }
 public void Resolve(IssuesCommunicationStateModel content)
 {
     this.Result = this.selector.IssuesTemplate;
 }