예제 #1
0
        public ProgressController GetController(Transfer transfer)
        {
            ProgressController progressController;

            if (!_transferMap.TryGetValue(transfer, out progressController))
            {
                progressController = new ProgressController(transfer);
                _transferMap.Add(transfer, new ProgressController(transfer));
            }
            return(progressController);
        }
예제 #2
0
 public void collectionItemAdded(object obj)
 {
     Invoke(delegate
     {
         Transfer transfer = obj as Transfer;
         ProgressController progressController = new ProgressController(transfer);
         _transferMap.Add(new KeyValuePair <Transfer, ProgressController>(transfer, progressController));
         IProgressView progressView = progressController.View;
         View.AddTransfer(progressView);
         View.SelectTransfer(progressView);
     });
 }
예제 #3
0
 public void collectionLoaded()
 {
     Invoke(delegate
     {
         IList <IProgressView> model = new List <IProgressView>();
         foreach (Transfer transfer in TransferCollection.defaultCollection())
         {
             ProgressController progressController = new ProgressController(transfer);
             model.Add(progressController.View);
             _transferMap.Add(new KeyValuePair <Transfer, ProgressController>(transfer,
                                                                              progressController));
         }
         View.SetModel(model);
     }
            );
 }
예제 #4
0
 public TransferProgressListener(ProgressController controller)
 {
     _controller = controller;
 }
예제 #5
0
 public ProgressTimerRunnable(ProgressController controller)
 {
     _controller = controller;
 }
예제 #6
0
 public TransferAdapter(ProgressController controller)
 {
     _controller = controller;
     _view       = controller.View;
 }