-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathtemp_section.txt
More file actions
50 lines (46 loc) · 1.52 KB
/
Copy pathtemp_section.txt
File metadata and controls
50 lines (46 loc) · 1.52 KB
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
40
41
42
43
44
45
46
47
48
49
50
;";
borderStyle = string.Empty;
if (TasksList is not null)
{
for (var k = 0; k < TasksList.Length; k++)
{
Tasks t = TasksList[k];
if (t.DateStart.Date <= j.Date && j.Date <= t.DateEnd.Date)
{
taskID = t.ID;
tasksCounter++;
if (PriorityDisplay == PriorityLabel.Code)
{
taskContent = string.IsNullOrWhiteSpace(t.Code) ? t.Caption : t.Code;
}
else
{
taskContent = string.IsNullOrWhiteSpace(t.Caption) ? t.Code : t.Caption;
}
taskColor = Colors.GetHatching(t.FillStyle, t.Color);
taskColor = $"{taskColor};color:{t.ForeColor}";
taskComment = t.Comment;
classPin = string.IsNullOrWhiteSpace(t.Comment) ? null : " pin";
classPointer = " cursor-pointer";
NotbeDraggeble = t.NotBeDraggable;
if (t.DateStart.Date == j.Date && t.DateEnd.Date != j.Date)
borderStyle = "border-top";
else if (t.DateEnd.Date == j.Date && t.DateStart.Date != j.Date)
borderStyle = "border-bottom";
else if (t.DateEnd.Date == j.Date && t.DateStart.Date == j.Date)
borderStyle = "border-top border-bottom";
}
}
}
if (tasksCounter > 1)
{
taskContent = "…";
taskComment = null;
taskColor = null;
classPin = " pin-top";
draggable = false;
taskID = -1;
}
else if (tasksCounter == 1)
{
draggable = Draggable != true ? false :