프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

markus / FinalService / FinalServiceBase / MarkupToPDF / Common / CommentUserInfo.cs @ 42d49521

이력 | 보기 | 이력해설 | 다운로드 (1.72 KB)

1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Windows.Media;
6

    
7
namespace MarkupToPDF.Common
8
{
9
    //public class MyEventArgs : System.EventArgs
10
    //{
11
    //    public bool isMouseOver { get; set; }
12
    //}
13

    
14
    public class CommentUserInfo : System.Windows.Controls.Control
15
    {
16
        public string Memo { get; set; }
17
        public string MarkupInfoID { get; set; }
18
        public bool IsMouseOver { get; set; }
19
        public bool IsNew { get; set; }
20

    
21
        public string CommentID { get; set; }
22

    
23
        //public event EventHandler<MyEventArgs> StateChanged;
24

    
25
        public CommentUserInfo()
26
        {
27
            this.MouseEnter += CommentUserInfo_MouseEnter;
28
            this.MouseLeave += CommentUserInfo_MouseLeave;
29
        }
30

    
31
        protected override GeometryHitTestResult HitTestCore(GeometryHitTestParameters hitTestParameters)
32
        {
33
            var temp = base.HitTestCore(hitTestParameters);
34
            return temp;
35
            //return base.HitTestCore(hitTestParameters);
36
        }
37

    
38
        private void CommentUserInfo_MouseLeave(object sender, System.Windows.Input.MouseEventArgs e)
39
        {
40
            this.IsMouseOver = false;
41
            //if (StateChanged !=null)
42
            //{
43
            //    StateChanged(this, new MyEventArgs { isMouseOver = false });
44
            //}
45
            //this.Opacity = 1;
46
        }
47

    
48
        private void CommentUserInfo_MouseEnter(object sender, System.Windows.Input.MouseEventArgs e)
49
        {
50
            this.IsMouseOver = true;
51
            //this.Opacity = 0.5;
52
            //if (StateChanged != null)
53
            //{
54
            //    StateChanged(this, new MyEventArgs { isMouseOver = true });
55
            //}
56
        }
57
    }
58
}
59
 
클립보드 이미지 추가 (최대 크기: 500 MB)