Пример #1
0
        public void Bind(PdbAndDllCopiermodel model)
        {
            textBoxSearch.DataBindings.Add(nameof(textBoxToPath.Text), model, nameof(model.SearchString), false,
                                           DataSourceUpdateMode.OnPropertyChanged);

            textBoxFrom.DataBindings.Add(nameof(textBoxToPath.Text), model, nameof(model.FromPath), false,
                                         DataSourceUpdateMode.OnPropertyChanged);

            textBoxToPath.DataBindings.Add(nameof(textBoxToPath.Text), model, nameof(model.ToPath), false,
                                           DataSourceUpdateMode.OnPropertyChanged);

            checkBoxCopyDll.DataBindings.Add(nameof(checkBoxCopyDll.Checked), model, nameof(model.CopyDll), false,
                                             DataSourceUpdateMode.OnPropertyChanged);
        }
Пример #2
0
        public void Bind(PdbAndDllCopiermodel model)
        {
            textBoxSearch.DataBindings.Add(nameof(textBoxToPath.Text), model, nameof(model.SearchString) , false,
                DataSourceUpdateMode.OnPropertyChanged);

            textBoxFrom.DataBindings.Add(nameof(textBoxToPath.Text), model, nameof(model.FromPath) , false,
               DataSourceUpdateMode.OnPropertyChanged);

            textBoxToPath.DataBindings.Add(nameof(textBoxToPath.Text), model, nameof(model.ToPath) , false,
              DataSourceUpdateMode.OnPropertyChanged);

            checkBoxCopyDll.DataBindings.Add(nameof(checkBoxCopyDll.Checked), model, nameof(model.CopyDll) , false,
              DataSourceUpdateMode.OnPropertyChanged);
        }
        public PdbAndDllCopierPresenter(IPdbAndDllCopierView view, PdbAndDllCopiermodel model, Action <string> log)
        {
            _view  = view;
            _model = model;
            _log   = log;

            _view.CopyClicked      += ViewOnCopyClicked;
            _view.FolderChecked    += ViewOnFolderChecked;
            _view.SelectAllClicked += ViewOnSelectAllClicked;
            _view.ClearClicked     += ViewOnClearClicked;
            _model.DisplayedBinFolders.ListChanged += DisplayedBinFoldersOnListChanged;
            _model.PropertyChanged += ModelOnPropertyChanged;

            //  _model.FromPath = @"E:\Dev\Fenergo\R7.1\WebApp\Src";
            //  _model.ToPath = @"E:\Dev\HSBC\PROJECT\Src\UI\WebUI\bin";
            GetSavedFromTo();

            _model.CopyDll      = true;
            _model.SearchString = "";
            _view.Bind(_model);
            InitFolders();
        }
Пример #4
0
 public void UpdateAutocompleteDataSource(PdbAndDllCopiermodel model)
 {
     textBoxSearch.AutoCompleteCustomSource.AddRange(
         model.AllBinFolders.Select(folder => folder.ProjectNameNoErgo).ToArray());
 }
Пример #5
0
 public void UpdateAutocompleteDataSource(PdbAndDllCopiermodel model)
 {
     textBoxSearch.AutoCompleteCustomSource.AddRange(
         model.AllBinFolders.Select(folder => folder.ProjectNameNoErgo).ToArray());
 }