public MakeSessionsFromFileProgressDialog(IEnumerable <KeyValuePair <string, string> > sourceDestinationPathPairs, Action <string> sessionCreatingMethod) { InitializeComponent(); _model = new CopyFilesViewModel(sourceDestinationPathPairs); _model.BeforeCopyingFileRaised = sessionCreatingMethod; var copyControl = new CopyFilesControl(_model); Controls.Add(copyControl); }
public CopyFilesControl(CopyFilesViewModel model) { _model = model; model.OnFinished += new EventHandler(OnFinished); InitializeComponent(); }