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); }
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); }); }
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); } ); }
public TransferProgressListener(ProgressController controller) { _controller = controller; }
public ProgressTimerRunnable(ProgressController controller) { _controller = controller; }
public TransferAdapter(ProgressController controller) { _controller = controller; _view = controller.View; }