-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMainWindow.GlobalLiveSearch.cs
More file actions
29 lines (23 loc) · 964 Bytes
/
Copy pathMainWindow.GlobalLiveSearch.cs
File metadata and controls
29 lines (23 loc) · 964 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System.Windows;
using System.Windows.Controls;
namespace ArIED61850Tester;
public partial class MainWindow
{
private bool _globalLiveFiltersExpanded;
private void GlobalLiveSearch_TextChanged(object sender, TextChangedEventArgs e)
=> GridUxBehavior.SetGlobalRapidSearch(GlobalLiveGrid, GlobalLiveSearchBox?.Text);
private void GlobalLiveSearchClear_Click(object sender, RoutedEventArgs e)
{
if (GlobalLiveSearchBox == null)
return;
GlobalLiveSearchBox.Clear();
GlobalLiveSearchBox.Focus();
}
private void GlobalLiveFilters_Click(object sender, RoutedEventArgs e)
{
_globalLiveFiltersExpanded = !_globalLiveFiltersExpanded;
GridUxBehavior.SetGlobalRapidFiltersExpanded(GlobalLiveGrid, _globalLiveFiltersExpanded);
if (GlobalLiveFiltersLabel != null)
GlobalLiveFiltersLabel.Text = _globalLiveFiltersExpanded ? "Hide filters" : "Filters";
}
}