markus / KCOM / Common / SelectionSet.cs @ a5b465dc
이력 | 보기 | 이력해설 | 다운로드 (1.56 KB)
1 | 959b3ef2 | humkyung | using KCOM.Common; |
---|---|---|---|
2 | using KCOM.Controls; |
||
3 | using KCOM.Views; |
||
4 | using MarkupToPDF.Common; |
||
5 | using MarkupToPDF.Controls.Parsing; |
||
6 | using Newtonsoft.Json; |
||
7 | using Newtonsoft.Json.Converters; |
||
8 | using Newtonsoft.Json.Linq; |
||
9 | using Newtonsoft.Json.Serialization; |
||
10 | using System; |
||
11 | using System.Collections; |
||
12 | using System.Collections.Generic; |
||
13 | using System.ComponentModel; |
||
14 | using System.Data; |
||
15 | using System.IO; |
||
16 | using System.Linq; |
||
17 | using System.Reflection; |
||
18 | using System.Runtime.Serialization.Formatters; |
||
19 | using System.Runtime.Serialization.Formatters.Binary; |
||
20 | using System.Runtime.Serialization.Json; |
||
21 | using System.Text; |
||
22 | using System.Windows; |
||
23 | using System.Windows.Media; |
||
24 | using System.Xml; |
||
25 | using System.Xml.Serialization; |
||
26 | |||
27 | namespace KCOM |
||
28 | { |
||
29 | public class SelectionSet |
||
30 | { |
||
31 | private static readonly SelectionSet _instance = new SelectionSet(); |
||
32 | |||
33 | // Explicit static constructor to tell C# compiler |
||
34 | // not to mark type as beforefieldinit |
||
35 | static SelectionSet() |
||
36 | { |
||
37 | } |
||
38 | |||
39 | private SelectionSet() |
||
40 | { |
||
41 | } |
||
42 | |||
43 | public static SelectionSet Instance |
||
44 | { |
||
45 | get |
||
46 | { |
||
47 | return _instance; |
||
48 | } |
||
49 | } |
||
50 | a5b465dc | humkyung | |
51 | /// <summary> |
||
52 | /// Control Select |
||
53 | /// </summary> |
||
54 | /// <author>humkyung</author> |
||
55 | /// <date>2019.06.13</date> |
||
56 | /// <param name="Control"></param> |
||
57 | /// <param name="dragrect"></param> |
||
58 | /// <returns></returns> |
||
59 | public Boolean SelectControl(CommentUserInfo control, Rect dragrect) |
||
60 | { |
||
61 | return dragrect.Contains(control.ItemRect); |
||
62 | } |
||
63 | 959b3ef2 | humkyung | } |
64 | } |