프로젝트

일반

사용자정보

개정판 e5bd2147

IDe5bd2147bc2e96d20d8d6594b40d487eba53b0cd
상위 301568ad
하위 cc37956c

임예철이(가) 9달 전에 추가함

Undo push method 수정
font size 수정

Change-Id: Ib02186683c56b454c0a50bdb8dddb8165111d5e3

차이점 보기:

KCOM/Events/UndoCommand.cs
47 47
        /// <author>humkyung</author>
48 48
        /// <date>2019.06.14</date>
49 49
        /// <param name="comments"></param>
50
        public void Push(ICollection<CommentUserInfo> comments, double dAngle, double dBeforeAngle = 0.0, List<Point> lstBeforePointSet = null)
50
        //public void Push(ICollection<CommentUserInfo> comments, double dAngle, double dBeforeAngle = 0.0, List<Point> lstBeforePointSet = null)
51
        //{
52
        //    Undo_data UndoData = new Undo_data()
53
        //    {
54
        //        IsUndo = false,
55
        //        Event = Event_Type.Thumb,
56
        //        EventTime = DateTime.Now,
57
        //        Markup_List = new List<Multi_Undo_data>(),
58
        //    };
59

  
60
        //    Multi_Undo_data multi_Undo_Data = new Multi_Undo_data();
61

  
62
        //    foreach (var comment in comments)
63
        //    {
64
        //        multi_Undo_Data.PointSet = new List<Point>();
65
        //        var p_set = new List<Point>();
66

  
67
        //        if (comment is TextControl)
68
        //        {
69
        //            multi_Undo_Data.PointSet.Add((comment as TextControl).StartPoint);
70
        //            multi_Undo_Data.PointSet.Add((comment as TextControl).EndPoint);
71
        //        }
72

  
73
        //        foreach (var point in (comment as IPath).PointSet)
74
        //        {
75
        //            multi_Undo_Data.PointSet.Add(point);
76
        //        }
77

  
78
        //        if (lstBeforePointSet != null)
79
        //            multi_Undo_Data.BeforePointSet = lstBeforePointSet;
80

  
81
        //        if (comment is ArrowTextControl)
82
        //        {
83
        //            //multi_Undo_Data.Angle = dAngle = (comment as ArrowTextControl).CommentAngle;
84
        //            multi_Undo_Data.Angle = dAngle;
85
        //            multi_Undo_Data.BeforeAngle = dBeforeAngle;
86
        //        }
87
        //        else
88
        //        {
89
        //            multi_Undo_Data.Angle = dAngle;
90
        //            multi_Undo_Data.BeforeAngle = dBeforeAngle;
91
        //        }
92

  
93
        //        multi_Undo_Data.Markup = comment;
94
        //        UndoData.Markup_List.Add(multi_Undo_Data);
95
        //        ViewerDataModel.Instance.SystemMain.dzMainMenu.pageNavigator.MarkupListUpdate(
96
        //                    MarkupParser.MarkupToString(multi_Undo_Data.Markup, App.ViewInfo.UserID), Event_Type.Thumb, null, null);
97

  
98
        //        multi_Undo_Data = new Multi_Undo_data();                
99
        //    }
100
        //    ViewerDataModel.Instance.UndoDataList.Where(data => data.IsUndo == true).ToList().ForEach(i =>
101
        //    {
102
        //        ViewerDataModel.Instance.UndoDataList.Remove(i);
103
        //    });
104

  
105
        //    ViewerDataModel.Instance.UndoDataList.Add(UndoData);            
106
        //}
107

  
108
        public void Push(ICollection<CommentUserInfo> comments)
51 109
        {
52 110
            Undo_data UndoData = new Undo_data()
53 111
            {
......
75 133
                    multi_Undo_Data.PointSet.Add(point);
76 134
                }
77 135

  
78
                if (lstBeforePointSet != null)
79
                    multi_Undo_Data.BeforePointSet = lstBeforePointSet;
136

  
137
                List<Point> points = new List<Point>();
138
                foreach(var point in (comment as IPath).PointSet)
139
                {
140
                    points.Add(point);
141
                }
142
                multi_Undo_Data.BeforePointSet = points;
80 143

  
81 144
                if (comment is ArrowTextControl)
82 145
                {
83 146
                    //multi_Undo_Data.Angle = dAngle = (comment as ArrowTextControl).CommentAngle;
84
                    multi_Undo_Data.Angle = dAngle;
85
                    multi_Undo_Data.BeforeAngle = dBeforeAngle;
147
                    multi_Undo_Data.Angle = comment.CommentAngle;
86 148
                }
87 149
                else
88 150
                {
89
                    multi_Undo_Data.Angle = dAngle;
90
                    multi_Undo_Data.BeforeAngle = dBeforeAngle;
151
                    multi_Undo_Data.Angle = comment.CommentAngle;
91 152
                }
92 153

  
93 154
                multi_Undo_Data.Markup = comment;
......
95 156
                ViewerDataModel.Instance.SystemMain.dzMainMenu.pageNavigator.MarkupListUpdate(
96 157
                            MarkupParser.MarkupToString(multi_Undo_Data.Markup, App.ViewInfo.UserID), Event_Type.Thumb, null, null);
97 158

  
98
                multi_Undo_Data = new Multi_Undo_data();                
159
                multi_Undo_Data = new Multi_Undo_data();
99 160
            }
100 161
            ViewerDataModel.Instance.UndoDataList.Where(data => data.IsUndo == true).ToList().ForEach(i =>
101 162
            {
102 163
                ViewerDataModel.Instance.UndoDataList.Remove(i);
103 164
            });
104 165

  
105
            ViewerDataModel.Instance.UndoDataList.Add(UndoData);            
166
            ViewerDataModel.Instance.UndoDataList.Add(UndoData);
106 167
        }
107 168

  
108 169
        /// <summary>

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)