public void TotalReload()
 {
     if (onLanguageCountChanged != null)
     {
         onLanguageCountChanged();
     }
     this.multiColumnHeader = LocalizationMultiColumnHeader.GetHeader();
     Reload();
 }
 public LanguageTreeView(TreeViewState state, MultiColumnHeader multiColumnHeader, string searchText, int searchFlags) : base(state, multiColumnHeader)
 {
     rowHeight         = 20;
     showBorder        = true;
     header            = multiColumnHeader as LocalizationMultiColumnHeader;
     this.searchString = searchText;
     this.searchFlags  = searchFlags;
     Reload();
 }
Пример #3
0
        protected void OnEnable()
        {
            Current = this;

            if (!string.IsNullOrEmpty(filePath))
            {
                Load(filePath, out languages, out dataTable);
            }

            searchField = new SearchField();
            searchField.SetFocus();
            UpdateSearchType();

            treeView = new LanguageTreeView(new TreeViewState(), LocalizationMultiColumnHeader.GetHeader(), searchText, searchFlags);
            treeView.Filtter(searchText, searchFlags);
            treeView.onLanguageCountChanged += UpdateSearchType;
        }