markus / MarkupToPDF / MarkupContext.cs @ a9a82876
이력 | 보기 | 이력해설 | 다운로드 (805 Bytes)
1 |
using System; |
---|---|
2 |
using System.Collections.Generic; |
3 |
using System.Linq; |
4 |
using System.Text; |
5 |
using System.Threading.Tasks; |
6 |
|
7 |
namespace MarkupToPDF |
8 |
{ |
9 |
public static class MarkupContext |
10 |
{ |
11 |
public static List<UserSingItem> UserSignCollection = new List<UserSingItem>(); |
12 |
|
13 |
public static UserSingItem GetUserSignItem(string userID) |
14 |
{ |
15 |
return UserSignCollection.Find(x => x.UserID == userID); |
16 |
} |
17 |
|
18 |
public static void SetUserSignItem(string userID,string signData,string signStrokes) |
19 |
{ |
20 |
UserSingItem item = GetUserSignItem(userID); |
21 |
|
22 |
if(item != null) |
23 |
{ |
24 |
UserSignCollection.Remove(item); |
25 |
} |
26 |
|
27 |
UserSignCollection.Add(new UserSingItem(userID, signData, signStrokes)); |
28 |
} |
29 |
} |
30 |
|
31 |
} |