개정판 e46ef756
issue #0000 \MarkupToPDF\UserSingItem.cs \MarkupToPDF\MarkupContext.cs 추가
Change-Id: I7cce48892f9d87e78fb3fbb41352badd66570875
MarkupToPDF/MarkupContext.cs | ||
---|---|---|
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 |
} |
MarkupToPDF/UserSingItem.cs | ||
---|---|---|
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 class UserSingItem |
|
10 |
{ |
|
11 |
public UserSingItem(string userID, string signData, string signStrokes) |
|
12 |
{ |
|
13 |
this.UserID = userID; |
|
14 |
this.Data = signData; |
|
15 |
this.Strokes = signStrokes; |
|
16 |
} |
|
17 |
|
|
18 |
public string UserID { get; set; } |
|
19 |
public string Data { get; set; } |
|
20 |
public string Strokes { get; set; } |
|
21 |
} |
|
22 |
} |
내보내기 Unified diff