Пример #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);
        }
Пример #2
0
 public CopyFilesControl(CopyFilesViewModel model)
 {
     _model            = model;
     model.OnFinished += new EventHandler(OnFinished);
     InitializeComponent();
 }