-
Notifications
You must be signed in to change notification settings - Fork 186
Expand file tree
/
Copy pathSearchParams.cs
More file actions
39 lines (28 loc) · 1008 Bytes
/
SearchParams.cs
File metadata and controls
39 lines (28 loc) · 1008 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
30
31
32
33
34
35
36
37
38
39
namespace LogExpert.Core.Entities;
[Serializable]
public class SearchParams
{
public int CurrentLine { get; set; }
public List<string> HistoryList { get; set; } = [];
public bool IsCaseSensitive { get; set; }
public bool IsFindNext { get; set; }
public bool IsForward { get; set; } = true;
public bool IsFromTop { get; set; }
public bool IsRegex { get; set; }
public string SearchText { get; set; } = string.Empty;
[field: NonSerialized]
public bool IsShiftF3Pressed { get; set; }
public void CopyFrom (SearchParams other)
{
ArgumentNullException.ThrowIfNull(other);
CurrentLine = other.CurrentLine;
HistoryList = other.HistoryList;
IsCaseSensitive = other.IsCaseSensitive;
IsFindNext = other.IsFindNext;
IsForward = other.IsForward;
IsFromTop = other.IsFromTop;
IsRegex = other.IsRegex;
SearchText = other.SearchText;
IsShiftF3Pressed = other.IsShiftF3Pressed;
}
}