GetText() публичный статический Метод

Returns the text value of the control. This is just a helper function that takes care of cross-thread invokations that would result in .NET exceptions.
public static GetText ( Control control ) : String
control System.Windows.Forms.Control
Результат String
Пример #1
0
 /// <summary>
 /// The search filter changed.  Reload the file list
 /// </summary>
 /// <param name="sender">event sender</param>
 /// <param name="e">event args</param>
 private void SearchFilter_TextChanged(object sender, EventArgs e)
 {
     _pageNumber     = 0;
     _pageStartIndex = 0;
     _fileList       = filterFiles(_allFilesList, _includeFileExtensions, _excludeFileExtensions, Windows.GetText(SearchFilter));
     refreshFileList();
 }
Пример #2
0
        /// <summary>
        /// Resort the file list and refresh it in the display
        /// </summary>
        private void switchSortOrder()
        {
            switch (_sortOrder)
            {
            case SortOrder.DateDescending:
                _sortOrder = SortOrder.DateAscending;
                break;

            case SortOrder.DateAscending:
                _sortOrder = SortOrder.AtoZ;
                break;

            case SortOrder.AtoZ:
                _sortOrder = SortOrder.ZtoA;
                break;

            case SortOrder.ZtoA:
                _sortOrder = SortOrder.DateDescending;
                break;
            }

            _pageNumber     = 0;
            _pageStartIndex = 0;
            _allFilesList   = getAllFiles(Folders, _sortOrder);
            _fileList       = filterFiles(_allFilesList, _includeFileExtensions, _excludeFileExtensions, Windows.GetText(SearchFilter));
            refreshFileList();
        }
Пример #3
0
        /// <summary>
        /// Look at filters, load files from the  specified folders
        /// </summary>
        private void loadFiles()
        {
            _allFilesList = getAllFiles(Folders, _sortOrder);
            _fileList     = filterFiles(_allFilesList, _includeFileExtensions, _excludeFileExtensions, Windows.GetText(SearchFilter));

            if (_tabStopButtonCount >= 3)
            {
                _entriesPerPage = _tabStopButtonCount - 2;
                refreshFileList();
            }
        }