프로젝트

일반

사용자정보

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

markus / MarkupToPDF / Controls / Etc / DateControl.cs @ 554aae3b

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

1
using System;
2
using System.Net;
3
using System.Windows;
4
using System.Windows.Controls;
5
using System.Windows.Documents;
6
using System.Windows.Ink;
7
using System.Windows.Input;
8
using System.Windows.Media;
9
using System.Windows.Media.Animation;
10
using System.Windows.Shapes;
11
using System.ComponentModel;
12
using System.Collections.Generic;
13
using MarkupToPDF.Controls.Common;
14
using MarkupToPDF.Common;
15
using MarkupToPDF.Serialize.Core;
16
using MarkupToPDF.Serialize.S_Control;
17
using System.Linq;
18

    
19
namespace MarkupToPDF.Controls.Etc
20
{
21
    public class DateControl : CommentUserInfo, IDisposable, IPath, INotifyPropertyChanged, IViewBox, IMarkupCommonData
22
    {
23
        private const string PART_ViewBox = "PART_ViewBox";
24
        private const string PART_TextBox = "PART_TextBox";
25
        public Viewbox Base_ViewBox = null;
26
        public TextBlock Base_TextBox = null;
27

    
28
        static DateControl()
29
        {
30
            DefaultStyleKeyProperty.OverrideMetadata(typeof(DateControl), new FrameworkPropertyMetadata(typeof(DateControl)));
31
            //Application.Current.Resources.MergedDictionaries.Add(Application.LoadComponent(new Uri("/MarkupToPDF;Component/Themes/generic.xaml")) as ResourceDictionary);
32
            ResourceDictionary dictionary = new ResourceDictionary();
33
            dictionary.Source = new Uri("/MarkupToPDF;component/themes/generic.xaml", UriKind.RelativeOrAbsolute);
34
            Application.Current.Resources.MergedDictionaries.Add(dictionary);
35
            System.Diagnostics.Debug.WriteLine("resource Count :" + Application.Current.Resources.MergedDictionaries.Count);
36
        }
37
     
38
        public DateControl()
39
        {
40
            this.DefaultStyleKey = typeof(DateControl);
41
        }
42

    
43

    
44
        #region Dependency Properties
45

    
46

    
47
        public static readonly DependencyProperty IsSelectedProperty =
48
            DependencyProperty.Register("IsSelected", typeof(bool), typeof(DateControl), new FrameworkPropertyMetadata(false, IsSelectedChanged));
49

    
50
        public static readonly DependencyProperty ControlTypeProperty =
51
            DependencyProperty.Register("ControlType", typeof(ControlType), typeof(DateControl), new FrameworkPropertyMetadata(ControlType.Date));
52

    
53
        public static readonly DependencyProperty OverViewPathDataProperty = DependencyProperty.Register(
54
        "OverViewPathData", typeof(Geometry), typeof(DateControl), null);
55

    
56
        public static readonly DependencyProperty OverViewStartPointProperty = DependencyProperty.Register(
57
        "OverViewStartPoint", typeof(Point), typeof(DateControl), new PropertyMetadata(null));
58

    
59
        public static readonly DependencyProperty OverViewEndPointProperty = DependencyProperty.Register(
60
                "OverViewEndPoint", typeof(Point), typeof(DateControl), new PropertyMetadata(null));
61

    
62

    
63
        public static readonly DependencyProperty TextProperty = DependencyProperty.Register(
64
                "Text", typeof(string), typeof(DateControl), new PropertyMetadata(null));
65
        public static readonly DependencyProperty UserIDProperty = DependencyProperty.Register(
66
                "UserID", typeof(string), typeof(DateControl), new PropertyMetadata(null));
67
        public static readonly DependencyProperty FontColorProperty = DependencyProperty.Register(
68
               "FontColor", typeof(SolidColorBrush), typeof(DateControl), new PropertyMetadata(new SolidColorBrush(Colors.Red)));
69
        //[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
70
        public static readonly DependencyProperty StartPointProperty = DependencyProperty.Register(
71
              "StartPoint", typeof(Point), typeof(DateControl), new PropertyMetadata(new Point(0, 0), PointValueChanged));
72
        public static readonly DependencyProperty EndPointProperty = DependencyProperty.Register(
73
               "EndPoint", typeof(Point), typeof(DateControl), new PropertyMetadata(new Point(100, 100), PointValueChanged));
74
        public static readonly DependencyProperty LineSizeProperty = DependencyProperty.Register(
75
               "LineSize", typeof(double), typeof(DateControl), new PropertyMetadata((double)3));
76
        public static readonly DependencyProperty TopRightPointProperty = DependencyProperty.Register(
77
                "TopRightPoint", typeof(Point), typeof(DateControl), new PropertyMetadata(new Point(0, 0), TRPointValueChanged));
78
        public static readonly DependencyProperty PointSetProperty = DependencyProperty.Register(
79
                "PointSet", typeof(List<Point>), typeof(DateControl), new PropertyMetadata(new List<Point>()));
80
        public static readonly DependencyProperty LeftBottomPointProperty = DependencyProperty.Register(
81
                 "LeftBottomPoint", typeof(Point), typeof(DateControl), new PropertyMetadata(new Point(0, 0), LBPointValueChanged));
82
        public static readonly DependencyProperty PathDataProperty = DependencyProperty.Register(
83
                "PathData", typeof(Geometry), typeof(DateControl), null);
84
        public static readonly DependencyProperty AngleProperty = DependencyProperty.Register("Angle", typeof(double), typeof(DateControl),
85
            new PropertyMetadata((double)0.0, new PropertyChangedCallback(AngleValueChanged)));
86

    
87
        public static readonly DependencyProperty CenterXProperty = DependencyProperty.Register("CenterX", typeof(double), typeof(DateControl),
88
            new PropertyMetadata((double)0, OnCenterXYChanged));
89

    
90
        public static readonly DependencyProperty CenterYProperty = DependencyProperty.Register("CenterY", typeof(double), typeof(DateControl),
91
            new PropertyMetadata((double)0, OnCenterXYChanged));
92

    
93
        #endregion
94
        #region PropertyChanged Method
95
        public static void IsSelectedChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
96
        {
97
            //var instance = (DateControl)sender;
98

    
99
            //if (e.OldValue != e.NewValue && instance.Base_ViewBox != null)
100
            //{
101

    
102
            //    instance.SetValue(e.Property, e.NewValue);
103

    
104
            //    if (instance.IsSelected)
105
            //    {
106
            //        //instance.Base_ViewBox.Style. = new SolidColorBrush(Colors.Blue);
107
            //    }
108
            //    else
109
            //    {
110
            //        //instance.Base_ViewBox.Stroke = new SolidColorBrush(Colors.Red);
111
            //    }
112
            //}
113
        }
114

    
115
        public static void PointValueChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
116
        {
117
            var instance = (DateControl)sender;
118
            if (e.OldValue != e.NewValue && instance.Base_TextBox != null)
119
            {
120
                instance.SetValue(e.Property, e.NewValue);
121
                instance.SetDate();
122
            }
123
        }
124
        public static void LBPointValueChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
125
        {
126
            var instance = (DateControl)sender;
127
            if (e.OldValue != e.NewValue && instance.Base_TextBox != null)
128
            {
129
                instance.SetValue(e.Property, e.NewValue);
130
                //instance.EndPoint = new Point(instance.EndPoint.X, ((Point)e.NewValue).Y);
131
                //instance.StartPoint = new Point(((Point)e.NewValue).X, instance.StartPoint.Y);
132
                ////instance.PointSet[0] = instance.StartPoint;
133
                ////instance.PointSet[2] = instance.EndPoint;
134
                instance.SetDate();
135
            }
136
        }
137
        public static void TRPointValueChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
138
        {
139
            var instance = (DateControl)sender;
140
            if (e.OldValue != e.NewValue && instance.Base_TextBox != null)
141
            {
142
                instance.SetValue(e.Property, e.NewValue);
143
                instance.SetDate();
144
            }
145
        }
146
        public static void OnCenterXYChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
147
        {
148
            var instance = (DateControl)sender;
149
            if (e.OldValue != e.NewValue && instance.Base_ViewBox != null)
150
            {
151
                instance.SetValue(e.Property, e.NewValue);
152
                instance.SetDate();
153
            }
154
        }
155

    
156
        public static void AngleValueChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
157
        {
158
            var instance = (DateControl)sender;
159
            if (e.OldValue != e.NewValue && instance.Base_ViewBox != null)
160
            {
161
                instance.SetValue(e.Property, e.NewValue);
162
                instance.SetDate();
163
            }
164
        }
165
        #endregion
166
        #region Properties
167
        public double LineSize
168
        {
169
            get { return (double)GetValue(LineSizeProperty); }
170
            set
171
            {
172
                if (this.LineSize != value)
173
                {
174
                    SetValue(LineSizeProperty, value);
175
                    OnPropertyChanged("LineSize");
176
                }
177
            }
178
        }
179
        public string UserID
180
        {
181
            get { return (string)GetValue(UserIDProperty); }
182
            set
183
            {
184
                if (this.UserID != value)
185
                {
186
                    SetValue(UserIDProperty, value);
187
                    OnPropertyChanged("UserID");
188
                }
189
            }
190
        }
191

    
192
        public override double Angle
193
        {
194
            get { return (double)GetValue(AngleProperty); }
195
            set
196
            {
197
                if (this.Angle != value)
198
                {
199
                    SetValue(AngleProperty, value);
200
                }
201
            }
202
        }
203

    
204
        public override bool IsSelected
205
        {
206
            get
207
            {
208
                return (bool)GetValue(IsSelectedProperty);
209
            }
210
            set
211
            {
212
                SetValue(IsSelectedProperty, value);
213
                OnPropertyChanged("IsSelected");
214
            }
215
        }
216

    
217
        public override ControlType ControlType
218
        {
219
            set
220
            {
221
                SetValue(ControlTypeProperty, value);
222
                OnPropertyChanged("ControlType");
223
            }
224
            get
225
            {
226
                return (ControlType)GetValue(ControlTypeProperty);
227
            }
228
        }
229

    
230
        public Geometry OverViewPathData
231
        {
232
            get { return (Geometry)GetValue(OverViewPathDataProperty); }
233
            set
234
            {
235
                SetValue(OverViewPathDataProperty, value);
236
                OnPropertyChanged("OverViewPathData");
237
            }
238
        }
239

    
240
        public List<Point> PointSet
241
        {
242
            get { return (List<Point>)GetValue(PointSetProperty); }
243
            set { SetValue(PointSetProperty, value); }
244
        }
245
        public Point TopRightPoint
246
        {
247
            get { return (Point)GetValue(TopRightPointProperty); }
248
            set
249
            {
250
                SetValue(TopRightPointProperty, value);
251
                OnPropertyChanged("TopRightPoint");
252
            }
253
        }
254
        public Point LeftBottomPoint
255
        {
256
            get { return (Point)GetValue(LeftBottomPointProperty); }
257
            set
258
            {
259
                SetValue(LeftBottomPointProperty, value);
260
                OnPropertyChanged("LeftBottomPoint");
261
            }
262
        }
263
        public double CenterX
264
        {
265
            get { return (double)GetValue(CenterXProperty); }
266
            set { SetValue(CenterXProperty, value); }
267
        }
268
        public double CenterY
269
        {
270
            get { return (double)GetValue(CenterYProperty); }
271
            set { SetValue(CenterYProperty, value); }
272
        }
273
        public string Text
274
        {
275
            get { return (string)GetValue(TextProperty); }
276
            set
277
            {
278
                if (this.Text != value)
279
                {
280
                    SetValue(TextProperty, value);
281
                    OnPropertyChanged("Text");
282
                }
283
            }
284
        }
285
        public Geometry PathData
286
        {
287
            get { return (Geometry)GetValue(PathDataProperty); }
288
            set
289
            {
290
                SetValue(PathDataProperty, value);
291
                OnPropertyChanged("PathData");
292
            }
293
        }
294
        public SolidColorBrush FontColor
295
        {
296
            get { return (SolidColorBrush)GetValue(FontColorProperty); }
297
            set
298
            {
299
                if (this.FontColor != value)
300
                {
301
                    SetValue(FontColorProperty, value);
302
                    OnPropertyChanged("FontColor");
303
                }
304

    
305
            }
306
        }
307
        public Point EndPoint
308
        {
309
            get { return (Point)GetValue(EndPointProperty); }
310
            set
311
            {
312
                if (this.EndPoint != value)
313
                {
314
                    SetValue(EndPointProperty, value);
315
                    OnPropertyChanged("EndPoint");
316
                }
317
            }
318
        }
319
        public Point StartPoint
320
        {
321
            get { return (Point)GetValue(StartPointProperty); }
322
            set
323
            {
324
                if (this.StartPoint != value)
325
                {
326
                    SetValue(StartPointProperty, value);
327
                    OnPropertyChanged("StartPoint");
328
                }
329
            }
330
        }
331

    
332
        public Point OverViewStartPoint
333
        {
334
            get { return (Point)GetValue(OverViewStartPointProperty); }
335
            set { SetValue(OverViewStartPointProperty, value); }
336
        }
337

    
338
        public Point OverViewEndPoint
339
        {
340
            get { return (Point)GetValue(OverViewEndPointProperty); }
341
            set { SetValue(OverViewEndPointProperty, value); }
342
        }
343

    
344
        //public int MyProperty { get; set; }
345

    
346

    
347
        #endregion
348
        #region Data
349
        LineGeometry p1 = new LineGeometry();
350
        LineGeometry p2 = new LineGeometry();
351
        LineGeometry p3 = new LineGeometry();
352
        LineGeometry p4 = new LineGeometry();
353
        GeometryGroup instanceGroup = new GeometryGroup();
354
        FormattedText text;
355
        #endregion
356
        public override void OnApplyTemplate()
357
        {
358
            base.OnApplyTemplate();
359
            Base_ViewBox = GetTemplateChild(PART_ViewBox) as Viewbox;
360
            Base_TextBox = GetTemplateChild(PART_TextBox) as TextBlock;
361
            Base_TextBox.Visibility = System.Windows.Visibility.Hidden;
362
            SetDate();
363
        }
364

    
365
        private void SetDate()
366
        {
367
            if (Text == null)
368
            {
369
                Text = DateTime.Now.ToString("yyyy-MM-dd");
370
            }
371
            this.ApplyTemplate();
372
            instanceGroup.Children.Clear();
373
            Base_TextBox.Visibility = System.Windows.Visibility.Visible;
374
            Point mid = MathSet.FindCentroid(new List<Point>()
375
            {
376
                this.StartPoint,
377
                this.LeftBottomPoint,
378
                this.EndPoint,
379
                this.TopRightPoint,                
380
            });
381

    
382

    
383
            double AngleData = this.Angle * -1;
384

    
385
            PathFigure pathFigure = new PathFigure();
386
            pathFigure.StartPoint = MathSet.RotateAbout(mid, this.StartPoint, AngleData);
387

    
388
            LineSegment lineSegment0 = new LineSegment();
389
            lineSegment0.Point = MathSet.RotateAbout(mid, this.StartPoint, AngleData);
390
            pathFigure.Segments.Add(lineSegment0);
391

    
392
            LineSegment lineSegment1 = new LineSegment();
393
            lineSegment1.Point = MathSet.RotateAbout(mid, this.LeftBottomPoint, AngleData);
394
            pathFigure.Segments.Add(lineSegment1);
395

    
396
            LineSegment lineSegment2 = new LineSegment();
397
            lineSegment2.Point = MathSet.RotateAbout(mid, this.EndPoint, AngleData);
398
            pathFigure.Segments.Add(lineSegment2);
399

    
400
            LineSegment lineSegment3 = new LineSegment();
401
            lineSegment3.Point = MathSet.RotateAbout(mid, this.TopRightPoint, AngleData);
402
            pathFigure.Segments.Add(lineSegment3);
403

    
404
            PathGeometry pathGeometry = new PathGeometry();
405
            pathGeometry.Figures = new PathFigureCollection();
406
            pathFigure.IsClosed = true;
407
            pathGeometry.Figures.Add(pathFigure);
408
            this.Base_ViewBox.Width = pathGeometry.Bounds.Width;
409
            this.Base_ViewBox.Height = pathGeometry.Bounds.Height;
410
            this.Tag = pathGeometry;
411

    
412
            Canvas.SetLeft(this, MathSet.RotateAbout(mid, mid, AngleData).X - this.Base_ViewBox.Width / 2);
413
            Canvas.SetTop(this, MathSet.RotateAbout(mid, mid, AngleData).Y - this.Base_ViewBox.Height / 2);
414

    
415
            //CenterX = MathSet.RotateAbout(mid, mid, AngleData).X - this.Base_ViewBox.Width / 2;
416
            //CenterY = MathSet.RotateAbout(mid, mid, AngleData).Y - this.Base_ViewBox.Height / 2;
417

    
418
            instanceGroup.Children.Add(pathGeometry);
419

    
420
            text = new FormattedText(Text, System.Globalization.CultureInfo.CurrentCulture,
421
                 FlowDirection.LeftToRight, new Typeface("Tahoma"), 16, Brushes.Black);
422

    
423
            instanceGroup.Children.Add(text.BuildGeometry(new Point(10,10)));
424

    
425
            PathData = instanceGroup;
426
            //OverViewPathData = PathData;
427

    
428

    
429
        }
430

    
431
        public event PropertyChangedEventHandler PropertyChanged;
432
        protected void OnPropertyChanged(string propName)
433
        {
434
            if (PropertyChanged != null)
435
                PropertyChanged(this, new PropertyChangedEventArgs(propName));
436
        }
437

    
438
        public void Dispose()
439
        {
440
            GC.Collect();
441
            GC.SuppressFinalize(this);
442
        }
443

    
444
        public override void ApplyOverViewData()
445
        {
446
            //this.OverViewPathData = this.PathData;
447
            this.OverViewStartPoint = this.StartPoint;
448
            this.OverViewEndPoint = this.EndPoint;
449
        }
450

    
451
        public override void UpdateControl()
452
        {
453
            this.StartPoint = new Point(this.PointSet[0].X, this.PointSet[0].Y);
454
            this.TopRightPoint = new Point(this.PointSet[3].X, this.PointSet[3].Y);
455
            this.LeftBottomPoint = new Point(this.PointSet[1].X, this.PointSet[1].Y);
456
            this.EndPoint = new Point(this.PointSet[2].X, this.PointSet[2].Y);
457
            this.SetDate();
458
        }
459

    
460
        /// <summary>
461
        /// call when mouse is moving while drawing control
462
        /// </summary>
463
        /// <author>humkyung</author>
464
        /// <param name="pt"></param>
465
        /// <param name="bAxisLocked"></param>
466
        public override void OnCreatingMouseMove(Point pt, bool bAxisLocked, bool bShiftKeyPressed)
467
        {
468
            this.EndPoint = pt;
469
            this.LeftBottomPoint = new Point(this.StartPoint.X, this.EndPoint.Y);
470
            this.TopRightPoint = new Point(this.EndPoint.X, this.StartPoint.Y);
471

    
472
            this.PointSet = new List<Point>
473
            {
474
                this.StartPoint,
475
                this.LeftBottomPoint,
476
                this.EndPoint,
477
                this.TopRightPoint,
478
            };
479
        }
480

    
481
        /// <summary>
482
        /// move control point has same location of given pt along given delta
483
        /// </summary>
484
        /// <author>humkyung</author>
485
        /// <date>2019.06.20</date>
486
        /// <param name="pt"></param>
487
        /// <param name="dx"></param>
488
        /// <param name="dy"></param>
489
        public override void OnMoveCtrlPoint(Point pt, double dx, double dy)
490
        {
491
            IPath path = (this as IPath);
492

    
493
            Point selected = MathSet.getNearPoint(path.PointSet, pt);
494
            selected.X += dx;
495
            selected.Y += dy;
496
            int i = 0;
497
            for (i = 0; i < (this as IPath).PointSet.Count; i++)
498
            {
499
                if (pt.Equals((this as IPath).PointSet[i]))
500
                {
501
                    path.PointSet[i] = selected;
502
                    break;
503
                }
504
            }
505

    
506
            var ReverseP = (i + path.PointSet.Count / 2) % path.PointSet.Count;
507
            var PreviousP = (i + (path.PointSet.Count - 1)) % path.PointSet.Count;
508
            var NextP = (i + 1) % path.PointSet.Count;
509

    
510
            var distance = MathSet.DistanceTo(path.PointSet[ReverseP], path.PointSet[i]);
511

    
512
            var PreviousV = MathSet.GetNormVectorBetween(path.PointSet[ReverseP], path.PointSet[PreviousP]);
513
            var l = MathSet.DotProduct(PreviousV.X, PreviousV.Y, path.PointSet[i].X - path.PointSet[ReverseP].X,
514
                path.PointSet[i].Y - path.PointSet[ReverseP].Y);
515
            path.PointSet[PreviousP] = new Point(path.PointSet[ReverseP].X + PreviousV.X * l, path.PointSet[ReverseP].Y + PreviousV.Y * l);
516

    
517
            var NextV = MathSet.GetNormVectorBetween(path.PointSet[ReverseP], path.PointSet[NextP]);
518
            l = MathSet.DotProduct(NextV.X, NextV.Y, path.PointSet[i].X - path.PointSet[ReverseP].X, path.PointSet
519
                [i].Y - path.PointSet[ReverseP].Y);
520
            path.PointSet[NextP] = new Point(path.PointSet[ReverseP].X + NextV.X * l, path.PointSet[ReverseP].Y + NextV.Y * l);
521

    
522
            this.UpdateControl();
523
        }
524

    
525
        /// <summary>
526
        /// return DateControl's area
527
        /// </summary>
528
        /// <author>humkyung</author>
529
        /// <date>2019.06.13</date>
530
        public override Rect ItemRect
531
        {
532
            get
533
            {
534
                double dMinX = Math.Min(this.StartPoint.X, this.EndPoint.X);
535
                double dMinY = Math.Min(this.StartPoint.Y, this.EndPoint.Y);
536
                double dMaxX = Math.Max(this.StartPoint.X, this.EndPoint.X);
537
                double dMaxY = Math.Max(this.StartPoint.Y, this.EndPoint.Y);
538

    
539
                return new Rect(new Point(dMinX, dMinY), new Point(dMaxX, dMaxY));
540
            }
541
        }
542

    
543
        /// <summary>
544
        /// Serialize this
545
        /// </summary>
546
        /// <param name="sUserId"></param>
547
        /// <returns></returns>
548
        public override string Serialize()
549
        {
550
            using (S_DateControl STemp = new S_DateControl())
551
            {
552
                STemp.Angle = this.Angle;
553
                STemp.EndPoint = this.EndPoint;
554
                STemp.UserID = this.UserID;
555
                STemp.LB = this.LeftBottomPoint;
556
                STemp.Name = this.GetType().Name;
557
                STemp.PointSet = this.PointSet;
558
                STemp.StartPoint = this.StartPoint;
559
                STemp.Opac = this.Opacity;
560
                STemp.TR = this.TopRightPoint;
561
                STemp.TransformPoint = "0|0";
562
                STemp.FontColor = this.FontColor.Color.ToString();
563
                //STemp.FontColor = "#FFFFFF00";
564
                STemp.SizeSet = String.Format("{0}", this.LineSize);
565
                STemp.Text = this.Text;
566
                ///강인구 추가(2017.11.02)
567
                ///Memo 추가
568
                STemp.Memo = this.Memo;
569

    
570
                return "|DZ|" + JsonSerializerHelper.CompressString((STemp.JsonSerialize()));
571
            }
572
        }
573

    
574
        /// <summary>
575
        /// create a datecontrol from given string
576
        /// </summary>
577
        /// <param name="str"></param>
578
        /// <returns></returns>
579
        public static DateControl FromString(string str, SolidColorBrush brush, string sProjectNo)
580
        {
581
            using (S_DateControl s = JsonSerializerHelper.JsonDeserialize<S_DateControl>(str))
582
            {
583
                string[] data2 = s.SizeSet.Split(delimiterChars2, StringSplitOptions.RemoveEmptyEntries);
584
                return new DateControl
585
                {
586
                    Angle = s.Angle,
587
                    StartPoint = s.StartPoint,
588
                    EndPoint = s.EndPoint,
589
                    LeftBottomPoint = s.LB,
590
                    TopRightPoint = s.TR,
591
                    Opacity = s.Opac,
592
                    FontColor = brush,
593
                    LineSize = Convert.ToDouble(data2.First()),
594
                    Text = s.Text,
595
                    PointSet = s.PointSet,
596
                    UserID = s.UserID,
597
                    Memo = s.Memo
598
                };
599
            }
600
        }
601
    }
602
}
클립보드 이미지 추가 (최대 크기: 500 MB)