public SetAndApplyBranchFilter ( string filter ) : bool | ||
filter | string | |
Результат | bool |
private void ApplyBranchFilter(bool refresh) { bool success = _NO_TRANSLATE_RevisionGrid.SetAndApplyBranchFilter(_NO_TRANSLATE_toolStripBranches.Text); if (success && refresh) { _NO_TRANSLATE_RevisionGrid.ForceRefreshRevisions(); } }
private void ApplyBranchFilter(bool refresh) { if (_applyingFilter) { return; } _applyingFilter = true; try { string filter = _NO_TRANSLATE_toolStripBranches.Items.Count > 0 ? _NO_TRANSLATE_toolStripBranches.Text : string.Empty; bool success = _NO_TRANSLATE_RevisionGrid.SetAndApplyBranchFilter(filter); if (success && refresh) { _NO_TRANSLATE_RevisionGrid.ForceRefreshRevisions(); } } finally { _applyingFilter = false; } }