Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public CopyFilesControl(CopyFilesViewModel model)
 {
     _model            = model;
     model.OnFinished += new EventHandler(OnFinished);
     InitializeComponent();
 }