프로젝트

일반

사용자정보

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

markus / KCOM / Controls / Symbol.xaml.cs @ f1f822e9

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

1
using IKCOM;
2
using KCOM.Common;
3
using KCOM.Events;
4
using KCOMDataModel.Common;
5
using KCOMDataModel.DataModel;
6
using MarkupToPDF.Common;
7
using MarkupToPDF.Controls.Parsing;
8
using System;
9
using System.Collections.Generic;
10
using System.ComponentModel;
11
using System.Linq;
12
using System.Text;
13
using System.Threading.Tasks;
14
using System.Windows;
15
using System.Windows.Controls;
16
using System.Windows.Data;
17
using System.Windows.Documents;
18
using System.Windows.Input;
19
using System.Windows.Media;
20
using System.Windows.Media.Imaging;
21
using System.Windows.Navigation;
22
using System.Windows.Shapes;
23
using Telerik.Windows.Controls;
24
using Telerik.Windows.Controls.DragDrop;
25

    
26
namespace KCOM.Controls
27
{
28
    public class Symbol_Custom
29
    {
30
        public string ID { get; set; }
31
        public string Name { get; set; }
32
        public string ImageUri { get; set; }
33
    }
34

    
35
    /// <summary>
36
    /// Symbol.xaml에 대한 상호 작용 논리
37
    /// </summary>
38
    public partial class Symbol : UserControl
39
    {
40
        AdornerFinal finalItem;
41
        bool IsMouseDown = false;
42
        string moveItem_id = "";
43
        public string filename { get; set; }
44
        bool _Initialize = false;
45

    
46
        public Symbol()
47
        {
48
            //App.splashString(ISplashMessage.SYMBOL);
49
            InitializeComponent();
50

    
51
            //RadDragAndDropManager.AddDragInfoHandler(lstSymbolPrivate, OnDragPrivateInfo);
52
            //RadDragAndDropManager.AddDragQueryHandler(lstSymbolPrivate, OnDragPrivateQuery);
53
            //RadDragAndDropManager.SetAllowDrag(lstSymbolPrivate, true);
54
            this.Loaded += Symbol_Loaded;
55
 
56
        }
57

    
58
        
59

    
60
        private async void Symbol_Loaded(object sender, RoutedEventArgs e)
61
        {
62
            if (!App.IsDesignMode)
63
            {
64
                if (!_Initialize)
65
                {
66
                    _Initialize = true;
67
                    await DataBindAsync();
68

    
69
                }
70
            }
71
        }
72

    
73
        private void OnDragPrivateInfo(object sender, DragDropEventArgs e)
74
        {
75
        }
76

    
77
        private void OnDragPrivateQuery(object sender, DragDropQueryEventArgs e)
78
        {
79
            if (e.Options.Status == DragStatus.DragQuery)
80
            {
81
                //var draggedListBoxItem = (e.Options.Source as System.Windows.Controls.ListBox).SelectedItem;
82
                //BitmapImage im = new BitmapImage(new Uri((draggedListBoxItem as DeepView.ServiceDeepView_Symbol.SymbolPrivate).ImageUri));
83
                //ImageSource _source = im;
84
                //Image img = new Image();
85
                //img.Source = _source;
86

    
87
                //e.Options.Payload = im;
88
                //var dragCue = new Image();
89
                //dragCue.Source = img.Source;
90
                //dragCue.Width = 0;
91
                //dragCue.Height = 0;
92
                //e.Options.DragCue = dragCue;
93

    
94

    
95
                //PayLoadAdorner = new AdornerFinal();
96
                //DeepView.ServiceDeepView_Symbol.SymbolPrivate tempDragableControl = (e.Options.Source as System.Windows.Controls.ListBox).SelectedItem as DeepView.ServiceDeepView_Symbol.SymbolPrivate;
97
                //var xamldata = tempDragableControl.Data;
98
                ////this.DeepLayer.markupParse(xamldata, this.DeepLayer._TempLayer, "복사된 데이터_이름으로 수정해야함");
99
                //PayLoadAdorner = this.DeepLayer.markupParseToAdorner(xamldata, this.DeepLayer._SelectLayer, "");
100
                //this.DeepLayer._SelectLayer.Children.Add(PayLoadAdorner);
101
            }
102

    
103
            e.QueryResult = true;
104
            e.Handled = true;
105
        }
106

    
107
        private async Task DataBindAsync()
108
        {
109
            //lstSymbolPrivate.ItemsSource = null;
110
            //lstSymbolPublic.ItemsSource = null;
111

    
112
            Symbol_Custom Custom = new Symbol_Custom();
113
            List<Symbol_Custom> Custom_List = new List<Symbol_Custom>();
114

    
115
            try
116
            {
117

    
118
                var symbol_Private = await ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseTaskClient.GetSymbolListAsync(App.ViewInfo.UserID);
119

    
120
                foreach (var item in symbol_Private)
121
                {
122
                    Custom.Name = item.NAME;
123
                    Custom.ImageUri = CommonLib.Common.IPReplace(item.IMAGE_URL, App.isExternal);
124
                    Custom.ID = item.ID;
125
                    Custom_List.Add(Custom);
126
                    Custom = new Symbol_Custom();
127
                }
128
                lstSymbolPrivate.ItemsSource = Custom_List;
129
            }
130
            catch (Exception ex)
131
            {
132
                System.Diagnostics.Debug.WriteLine(ex.ToString());
133
            }
134

    
135
            Custom = new Symbol_Custom();
136
            Custom_List = new List<Symbol_Custom>();
137

    
138
            deptlist.ItemsSource = await ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseTaskClient.GetPublicSymbolDeptListAsync();
139

    
140
            List<SYMBOL_PUBLIC> symbol_Public;
141

    
142

    
143
            if (deptlist.SelectedValue != null)
144
            {
145
                symbol_Public = await ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseTaskClient.GetPublicSymbolListAsync(deptlist.SelectedValue.ToString());
146
            }
147
            else
148
            {
149
                symbol_Public = await ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseTaskClient.GetPublicSymbolListAsync(null);
150
            }
151

    
152
            if (symbol_Public != null)
153
            {
154
                foreach (var item in symbol_Public)
155
                {
156
                    Custom.Name = item.NAME;
157
                    Custom.ImageUri = CommonLib.Common.IPReplace(item.IMAGE_URL, App.isExternal);
158
                    Custom.ID = item.ID;
159
                    Custom_List.Add(Custom);
160
                    Custom = new Symbol_Custom();
161
                }
162

    
163
                lstSymbolPublic.ItemsSource = Custom_List;
164
            }
165
        }
166

    
167
        public async Task<PngBitmapEncoder> symImageAsync(string data,double PageAngle)
168
        {
169

    
170
            Canvas _canvas = new Canvas();
171
            _canvas.Background = Brushes.White;
172
            _canvas.Width = finalItem.BorderSize.Width;
173
            _canvas.Height = finalItem.BorderSize.Height;
174
            await MarkupParser.ParseAsync(App.BaseAddress, App.ViewInfo.ProjectNO, data, _canvas, PageAngle, "#FFFF0000", "", ViewerDataModel.Instance.NewMarkupCancelToken());
175

    
176
            BitmapEncoder encoder = new PngBitmapEncoder();
177

    
178

    
179
            RenderTargetBitmap renderBitmap = new RenderTargetBitmap((int)_canvas.Width + 50, (int)_canvas.Height + 50, 96d, 96d, PixelFormats.Pbgra32);
180

    
181
            DrawingVisual dv = new DrawingVisual();
182

    
183
            _canvas.Measure(new System.Windows.Size(finalItem.BorderSize.Width + 50, finalItem.BorderSize.Height + 50));
184
            //_canvas.Arrange(new Rect(new System.Windows.Point { X = -finalItem.BorderSize.X - 50, Y = -finalItem.BorderSize.Y - 50 }, new Point(finalItem.BorderSize.Width + 20, finalItem.BorderSize.Height + 20)));
185
            _canvas.Arrange(new Rect(new System.Windows.Point { X = -finalItem.BorderSize.X - 20, Y = -finalItem.BorderSize.Y - 20 }, new Point(finalItem.BorderSize.Width + 20, finalItem.BorderSize.Height + 20)));
186

    
187
            using (DrawingContext ctx = dv.RenderOpen())
188
            {
189
                VisualBrush vb = new VisualBrush(_canvas);
190
                //ctx.DrawRectangle(vb, null, new Rect(new System.Windows.Point { X = -finalItem.BorderSize.X - 20, Y = -finalItem.BorderSize.Y - 20 }, new Point(finalItem.BorderSize.Width + 20, finalItem.BorderSize.Height + 20)));
191
                ctx.DrawRectangle(vb, null, new Rect(new System.Windows.Point { X = -finalItem.BorderSize.X, Y = -finalItem.BorderSize.Y }, new Point(finalItem.BorderSize.Width + 20, finalItem.BorderSize.Height + 20)));
192
            }
193

    
194
            try
195
            {
196
                renderBitmap.Render(dv);
197

    
198
                GC.Collect();
199
                GC.WaitForPendingFinalizers();
200
                GC.Collect();
201
                //bitmap.Render(controlToConvert);
202
                // encode png data
203
                PngBitmapEncoder pngEncoder = new PngBitmapEncoder();
204
                // puch rendered bitmap into it
205
                pngEncoder.Interlace = PngInterlaceOption.Off;
206
                pngEncoder.Frames.Add(BitmapFrame.Create(renderBitmap));
207
                return pngEncoder;
208

    
209
            }
210
            catch //(Exception ex)
211
            {
212
                return null;
213
            }
214

    
215
        }
216

    
217
        public void DialogMessage_Alert(string content, string header)
218
        {
219
            App.splashScreen.Close();
220

    
221
            DialogParameters parameters = new DialogParameters()
222
            {
223
                Owner = Application.Current.MainWindow,
224
                Content = new TextBlock()
225
                {
226
                    MinWidth = 400,
227
                    FontSize = 11,
228
                    Text = content,
229
                    TextWrapping = System.Windows.TextWrapping.Wrap
230
                },
231
                Header = header,
232
                Theme = new VisualStudio2013Theme(),
233
                ModalBackground = new SolidColorBrush { Color = Colors.Black, Opacity = 0.6 },
234
            };
235
            RadWindow.Alert(parameters);
236
        }
237

    
238
        #region Event
239

    
240
        #region Private Symbol Add Event
241
        private void Create_Symbol(object sender, RoutedEventArgs e)
242
        {
243
            MarkupToPDF.Controls.Parsing.MarkupParser.MarkupReturn markupReturn = new MarkupToPDF.Controls.Parsing.MarkupParser.MarkupReturn();
244

    
245
            if (Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.SelectLayer.Children.Count < 1) //선택된 것이 없으면
246
            {
247
                DialogMessage_Alert("Please Select Controls", "Alert");
248
            }
249
            else //선택된 것이 있으면
250
            {
251
                string MarkupData = "";
252
                finalItem = new AdornerFinal();
253

    
254
                foreach (var item in Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.SelectLayer.Children)
255
                {
256
                    if (item.GetType().Name == "AdornerFinal")
257
                    {
258
                        finalItem = (item as Controls.AdornerFinal);
259
                        foreach (var InnerItem in (item as Controls.AdornerFinal).Members.Cast<Controls.AdornerMember>())
260
                        {
261
                            if (!ViewerDataModel.Instance.MarkupControls.Contains(InnerItem.DrawingData))
262
                            {
263
                                markupReturn = MarkupParser.MarkupToString(InnerItem.DrawingData as MarkupToPDF.Common.CommentUserInfo, App.ViewInfo.UserID);
264
                                MarkupData += markupReturn.ConvertData;
265
                            }
266
                        }
267
                    }
268
                }
269
                DialogParameters parameters = new DialogParameters()
270
                {
271
                    Owner = Application.Current.MainWindow,
272
                    Closed = (obj, args) => this.MarkupNamePromptClose(MarkupData, args),
273
                    DefaultPromptResultValue = "Custom State",
274
                    Content = "Name :",
275
                    Header = "Insert Custom Symbol Name",
276
                    Theme = new VisualStudio2013Theme(),
277
                    ModalBackground = new SolidColorBrush { Color = Colors.Black, Opacity = 0.6 },
278
                };
279
                RadWindow.Prompt(parameters);
280
            }
281

    
282
        }
283
        #endregion
284

    
285
        #region Symbol Add Close Event 
286
        private async void MarkupNamePromptClose(string data, WindowClosedEventArgs args)
287
        {
288
            try
289
            {
290
                if (args.PromptResult != null)
291
                {
292
                    if (args.DialogResult.Value)
293
                    {
294
                        PngBitmapEncoder _Encoder = await symImageAsync(data,ViewerDataModel.Instance.MarkupAngle);
295

    
296
                        System.IO.MemoryStream fs = new System.IO.MemoryStream();
297
                        _Encoder.Save(fs);
298
                        System.Drawing.Image ImgOut = System.Drawing.Image.FromStream(fs);
299

    
300
                        byte[] Img_byte = fs.ToArray();
301

    
302
                        kr.co.devdoftech.cloud.FileUpload fileUploader = App.FileUploader;
303
                        filename = fileUploader.RunSymbol(App.ViewInfo.ProjectNO, Common.ViewerDataModel.Instance.SystemMain.dzMainMenu._DocItem.DOCUMENT_NO, App.ViewInfo.UserID, Commons.shortGuid() + ".png", Img_byte);
304
                        Check_Uri.UriCheck(filename);
305
                        if (RadTab.SelectedIndex == 0)
306
                        {
307
                            SymbolSave(args.PromptResult, filename, data);
308
                        }
309
                        else
310
                        {
311
                            SymbolSave_Public(args.PromptResult, filename, data, Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.userData.DEPARTMENT);
312
                        }
313

    
314
                        await DataBindAsync();
315
                    }
316
                }
317
            }
318
            catch(Exception ex)
319
            {
320
                Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.DialogMessage_Alert("" + ex, "Alert");
321
            }
322
        }
323
        #endregion
324

    
325
        public void SymbolSave(string Name, string Url, string Data)
326
        {
327
            try
328
            {
329
                SYMBOL_PRIVATE symbol_private = new SYMBOL_PRIVATE
330
                {
331
                    ID = Commons.shortGuid(),
332
                    MEMBER_USER_ID = App.ViewInfo.UserID,
333
                    NAME = Name,
334
                    IMAGE_URL = Url,
335
                    DATA = Data
336
                };
337

    
338
                Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.SaveSymbolCompleted += BaseClient_SaveSymbolCompleted;
339
                //Logger.sendReqLog("SaveSymbolAsync: ", symbol_private.ID + "," + symbol_private.MEMBER_USER_ID + "," + symbol_private.NAME + "," + symbol_private.IMAGE_URL + "," + symbol_private.DATA, 1);
340
                Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.SaveSymbolAsync(symbol_private);
341
            }
342
            catch (Exception)
343
            {
344
                throw;
345
            }
346
        }
347

    
348
        public void SymbolSave_Public(string Name, string Url, string Data, string Department)
349
        {
350
            try
351
            {
352
                SYMBOL_PUBLIC symbol_public = new SYMBOL_PUBLIC
353
                {
354
                    ID = Commons.shortGuid(),
355
                    DEPARTMENT = Department,
356
                    NAME = Name,
357
                    IMAGE_URL = Url,
358
                    DATA = Data
359
                };
360
                Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.AddPublicSymbolCompleted += BaseClient_AddPublicSymbolCompleted;
361
                //Logger.sendReqLog("AddPublicSymbol: ", symbol_public.ID + "," + symbol_public.DEPARTMENT + "," + symbol_public.NAME + "," + symbol_public.IMAGE_URL + "," + symbol_public.DATA, 1);
362
                Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.AddPublicSymbol(symbol_public);
363
            }
364
            catch (Exception)
365
            {
366
                throw;
367
            }
368
        }
369

    
370
        private async void BaseClient_AddPublicSymbolCompleted(object sender, ServiceDeepView.AddPublicSymbolCompletedEventArgs e)
371
        {
372
            //Logger.sendResLog("AddPublicSymbolCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1);
373
            await DataBindAsync();
374
        }
375

    
376
        private async void BaseClient_SaveSymbolCompleted(object sender, ServiceDeepView.SaveSymbolCompletedEventArgs e)
377
        {
378
            //Logger.sendResLog("RenameSymbolCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1);
379
            await DataBindAsync();
380
        }
381

    
382
        #region Private Symbol Delete Event
383
        private void Remove_Symbol(object sender, RoutedEventArgs e)
384
        {
385
            if (lstSymbolPrivate.SelectedItem == null)
386
            {
387
                DialogMessage_Alert("Please Select Symbol", "Alert");
388
                return;
389
            }
390
            string delItem_ID = (lstSymbolPrivate.SelectedItem as Symbol_Custom).ID;
391

    
392
            Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.DeleteSymbolCompleted += BaseClient_DeleteSymbolCompleted;
393
            //Logger.sendReqLog("DeleteSymbolAsync: ", delItem_ID, 1);
394
            Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.DeleteSymbolAsync(delItem_ID, RadTab.SelectedIndex);
395
        }
396
        #endregion
397
        #region Public Symbol Delete Event
398
        private void Remove_Symbol_Public(object sender, RoutedEventArgs e)
399
        {
400
            if (lstSymbolPublic.SelectedItem == null)
401
            {
402
                DialogMessage_Alert("Please Select Symbol", "Alert");
403
                return;
404
            }
405
            string delItem_ID = (lstSymbolPublic.SelectedItem as Symbol_Custom).ID;
406

    
407
            Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.DeleteSymbolCompleted += BaseClient_DeleteSymbolCompleted;
408
            //Logger.sendReqLog("DeleteSymbolAsync: ", delItem_ID, 1);
409
            Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.DeleteSymbolAsync(delItem_ID, RadTab.SelectedIndex);
410
        }
411

    
412
        private async void BaseClient_DeleteSymbolCompleted(object sender, ServiceDeepView.DeleteSymbolCompletedEventArgs e)
413
        {
414
            //Logger.sendResLog("DeleteSymbolCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1);
415
             await DataBindAsync();
416
        }
417
        #endregion
418

    
419
        public Undo_data UndoData { get; set; }
420
        /// <summary>
421
        /// place symbol which has given id to original position which is created
422
        /// </summary>
423
        /// <date>2018.06.14</date>
424
        /// <param name="id"></param>
425
        private async void PlaceSymbol(string id,Point CurrentMousePoint)
426
        {
427
            string Data_ = "";
428

    
429
            var systemMain = Common.ViewerDataModel.Instance.SystemMain;
430
            var mainMenu = systemMain.dzMainMenu;
431
            
432
            SelectionSet.Instance.UnSelect(mainMenu);  /// unselect alreay selected items
433

    
434
            try
435
            {
436
                //Logger.sendReqLog("GetSymbolData: ", id + "," + RadTab.SelectedIndex, 1);
437
                Data_ = mainMenu.BaseClient.GetSymbolData(id, RadTab.SelectedIndex);
438

    
439
                if (Data_ != null || Data_ != "")
440
                {
441
                    //Logger.sendResLog("GetSymbolData", "TRUE", 1);
442
                }
443
                else
444
                {
445
                    //Logger.sendResLog("GetSymbolData", "FALSE", 1);
446
                }
447

    
448
                //MARKUP_DATA_GROUP INSERT
449
                //MARKUP_DATA_GROUP mARKUP_DATA_GROUP = new MARKUP_DATA_GROUP
450
                //{
451
                //    SYMBOL_ID = id,//InnerItem.Symbol_ID
452
                //    STATE = 0,
453
                //};
454
                //long group_id = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.AddMarkupDataGroup(mARKUP_DATA_GROUP, App.ViewInfo.ProjectNO);
455
                ////Logger.sendReqLog("AddMarkupDataGroup: ", "", 1);
456

    
457
                if (Data_.Contains("|DZ|"))
458
                {
459
                    List<MarkupToPDF.Common.CommentUserInfo> adornerSet = new List<MarkupToPDF.Common.CommentUserInfo>();
460

    
461
                    string[] delimiterChars = { "|DZ|" };
462
                    string[] data = Data_.Split(delimiterChars, StringSplitOptions.RemoveEmptyEntries);
463

    
464
                    Multi_Undo_data multi_Undo_Data = new Multi_Undo_data();
465
                    UndoData = new Undo_data()
466
                    {
467
                        IsUndo = false,
468
                        Event = Event_Type.Create,
469
                        EventTime = DateTime.Now,
470
                        Markup_List = new List<Multi_Undo_data>()
471
                    };
472
                    ViewerDataModel.Instance.UndoDataList.Where(data1 => data1.IsUndo == true).ToList().ForEach(i =>
473
                    {
474
                        ViewerDataModel.Instance.UndoDataList.Remove(i);
475
                    });
476

    
477
                    foreach (string parse in data)
478
                    {
479
                        if (parse != "")
480
                        {
481
                            System.Windows.Controls.Control item = await MarkupParser.ParseExAsync(App.BaseAddress, ViewerDataModel.Instance.NewMarkupCancelToken(),App.ViewInfo.ProjectNO, parse, ViewerDataModel.Instance.MarkupControls_USER, ViewerDataModel.Instance.PageAngle, string.Empty, string.Empty);
482
                            (item as MarkupToPDF.Common.CommentUserInfo).CommentID = Commons.shortGuid();
483
                            (item as MarkupToPDF.Common.CommentUserInfo).SymbolID = id;
484
                            //(item as MarkupToPDF.Common.CommentUserInfo).GroupID = group_id;
485

    
486
                            ViewerDataModel.Instance.MarkupControls.Remove(item as MarkupToPDF.Common.CommentUserInfo);
487
                            ViewerDataModel.Instance.MarkupControls_USER.Remove(item as MarkupToPDF.Common.CommentUserInfo);
488

    
489
                            adornerSet.Add(item as MarkupToPDF.Common.CommentUserInfo);
490

    
491
                            multi_Undo_Data = this.ParentOfType<MainWindow>().dzMainMenu.Control_Style(item as MarkupToPDF.Common.CommentUserInfo);
492

    
493
                            UndoData.Markup_List.Add(multi_Undo_Data);
494
                            ViewerDataModel.Instance.UndoDataList.Add(UndoData);
495
                        }
496
                    }
497

    
498
                    Controls.AdornerFinal final = new Controls.AdornerFinal(adornerSet);
499

    
500
                    // 마우스 클릭된 페이지 위치
501

    
502
                    var pageWidth = ViewerDataModel.Instance.ImageViewWidth;
503
                    var pageHeight = ViewerDataModel.Instance.ImageViewHeight;
504
                    var angle = Common.ViewerDataModel.Instance.MarkupAngle;
505

    
506
                    Point pagePoint = new Point(pageWidth/2, pageHeight/2);
507

    
508
                    var rotatePoint = Rotate(mainMenu.CanvasDrawingMouseDownPoint,pagePoint,angle);
509

    
510
                    var diff = Point.Subtract(rotatePoint, final.Centeroid);
511
                    final.TranslateItems(diff.X, diff.Y);
512

    
513
                    mainMenu.SelectLayer.Children.Add(final);
514
                    //var finalPosition = new Point(Canvas.GetLeft(final), Canvas.GetTop(final));
515
                    //Rect rect = new Rect(finalPosition, Point.Add(finalPosition,new Vector(final.Width,final.Height)));
516

    
517
                    //SelectionSet.Instance.SelectItemByRect(final.getAdornerSize(), mainMenu);
518

    
519
                }
520
                else
521
                {
522
                    PlaceImageSymbol(id, 0);
523
                }
524
            }
525
            catch (Exception ex)
526
            {
527
                this.ParentOfType<MainWindow>().dzMainMenu.DialogMessage_Alert(ex.Message, "Error");
528
            }
529
        }
530

    
531

    
532
        //출처: https://icodebroker.tistory.com/3189 [ICODEBROKER]
533
        public Point Rotate(Point sourcePoint, Point centerPoint, double rotateAngle)
534
        {
535
            Point targetPoint = new Point();
536

    
537
            double radian = rotateAngle / 180 * Math.PI;
538

    
539
            targetPoint.X = Math.Cos(radian) * (sourcePoint.X - centerPoint.X) - Math.Sin(radian) * (sourcePoint.Y - centerPoint.Y) + centerPoint.X;
540
            targetPoint.Y = Math.Sin(radian) * (sourcePoint.X - centerPoint.X) + Math.Cos(radian) * (sourcePoint.Y - centerPoint.Y) + centerPoint.Y;
541

    
542
            return targetPoint;
543
        }
544

    
545

    
546

    
547
        private void PlaceImageSymbol(string id, long group_id)
548
        {
549
           
550
            //canvasZoommovingMouseDownPoint
551
            string Data_ = "";
552

    
553
            try
554
            {
555
                //Logger.sendReqLog("GetSymbolImageURL: ", id + "," + RadTab.SelectedIndex, 1);
556
                Data_ = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetSymbolImageURL(id, RadTab.SelectedIndex);
557
                if (Data_ != null || Data_ != "")
558
                {
559
                    //Logger.sendResLog("GetSymbolImageURL", "TRUE", 1);
560
                }
561
                else
562
                {
563
                    //Logger.sendResLog("GetSymbolImageURL", "FALSE", 1);
564
                }
565

    
566
                //MARKUP_DATA_GROUP INSERT
567
                //MARKUP_DATA_GROUP mARKUP_DATA_GROUP = new MARKUP_DATA_GROUP
568
                //{
569
                //    SYMBOL_ID = id,//InnerItem.Symbol_ID
570
                //    STATE = 0,
571
                //};
572
                //long group_id = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.AddMarkupDataGroup(mARKUP_DATA_GROUP, App.ViewInfo.ProjectNO);
573
                ////Logger.sendReqLog("AddMarkupDataGroup: ", "", 1);
574

    
575
                if (Data_ != null)
576
                {
577
                    Image img = new Image();
578
                    //img.Source = new System.Windows.Media.Imaging.BitmapImage(new Uri(Data_));
579
                    if (Data_.Contains(".svg"))
580
                    {
581
                        SharpVectors.Converters.SvgImageExtension svgImage = new SharpVectors.Converters.SvgImageExtension(Data_);
582
                        img.Source = (DrawingImage)svgImage.ProvideValue(null);
583
                    }
584
                    else
585
                    {
586
                        img.Source = new BitmapImage(new Uri(Data_));
587
                    }
588

    
589
                    var currentControl = new MarkupToPDF.Controls.Etc.ImgControl
590
                    {
591
                        PointSet = new List<Point>(),
592
                        FilePath = Data_,
593
                        ImageData = img.Source,
594
                        StartPoint = new Point(0, 0),
595
                        EndPoint = new Point(img.Source.Width, img.Source.Height),
596
                        TopRightPoint = new Point(img.Source.Width, 0),
597
                        LeftBottomPoint = new Point(0, img.Source.Height)
598
                    };
599

    
600
                    currentControl.PointSet = new List<Point>
601
                                        {
602
                                            currentControl.StartPoint,
603
                                            currentControl.LeftBottomPoint,
604
                                            currentControl.EndPoint,
605
                                            currentControl.TopRightPoint,
606
                                        };
607
                    Multi_Undo_data multi_Undo_Data = new Multi_Undo_data();
608
                    UndoData = new Undo_data()
609
                    {
610
                        IsUndo = false,
611
                        Event = Event_Type.Create,
612
                        EventTime = DateTime.Now,
613
                        Markup_List = new List<Multi_Undo_data>()
614
                    };
615
                    ViewerDataModel.Instance.UndoDataList.Where(data1 => data1.IsUndo == true).ToList().ForEach(i =>
616
                    {
617
                        ViewerDataModel.Instance.UndoDataList.Remove(i);
618
                    });
619

    
620
                    //multi_Undo_Data = dzMainMenu.Control_Style(currentControl as MarkupToPDF.Common.CommentUserInfo);
621
                    multi_Undo_Data = this.ParentOfType<MainWindow>().dzMainMenu.Control_Style(currentControl as MarkupToPDF.Common.CommentUserInfo);
622
                    UndoData.Markup_List.Add(multi_Undo_Data);
623
                    ViewerDataModel.Instance.UndoDataList.Add(UndoData);
624

    
625
                    ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl as MarkupToPDF.Common.CommentUserInfo);
626
                    currentControl.CommentID = Commons.shortGuid();
627
                    currentControl.SymbolID = id;
628
                    currentControl.GroupID = group_id;
629
                    currentControl.ApplyTemplate();
630
                    currentControl.SetImage();
631

    
632
                    ViewerDataModel.Instance.MarkupControls_USER.Remove(currentControl as MarkupToPDF.Common.CommentUserInfo);
633
                    Controls.AdornerFinal final = new Controls.AdornerFinal(currentControl as MarkupToPDF.Common.CommentUserInfo);
634
                    this.ParentOfType<MainWindow>().dzMainMenu.SelectLayer.Children.Add(final);
635

    
636
                    /*
637
                    // this.ParentOfType<MainWindow>().dzMainMenu.isLeftMouseButtonDownOnWindow = true;
638
                    // final.MoveAdorner(new System.Windows.Controls.Primitives.DragDeltaEventArgs(realPointX, realPointY));
639
                    double realPointX = this.ParentOfType<MainWindow>().dzMainMenu.getCurrentPoint.X - final.BorderSize.X - (final.BorderSize.Width / 2);
640
                    double realPointY = this.ParentOfType<MainWindow>().dzMainMenu.getCurrentPoint.Y - final.BorderSize.Y - (final.BorderSize.Height / 2);
641
                      final.TranslateItems(realPointX, realPointY);
642
                    // move.control_Select(item, dragRect);
643
                    ApplyDragSelectionRect();
644
                    //this.ParentOfType<MainWindow>().dzMainMenu.mouseHandlingMode = MouseHandlingMode.DragSymbol;
645
                    ///this.ParentOfType<MainWindow>().dzMainMenu.mouseButtonDown = MouseButton.Left;
646
                    //this.ParentOfType<MainWindow>().dzMainMenu.symboldata(id, group_id, RadTab.SelectedIndex, Data_, img.Source);*/
647
                    
648
                }
649
            }
650
            catch(Exception ex)
651
            {
652
                this.ParentOfType<MainWindow>().dzMainMenu.DialogMessage_Alert(ex.Message, "Error");
653
            }
654
        }
655

    
656
        public Multi_Undo_data multi_Undo_Data;
657
        private void ApplyDragSelectionRect()
658
        {
659
            multi_Undo_Data = new Multi_Undo_data();
660

    
661
            UndoData = new Undo_data()
662
            {
663
                IsUndo = false,
664
                Event = Event_Type.Select,
665
                EventTime = DateTime.Now,
666
                Markup_List = new List<Multi_Undo_data>()
667
            };
668

    
669
            this.ParentOfType<MainWindow>().dzMainMenu.dragSelectionBorder.Visibility = Visibility.Collapsed;
670

    
671
            double x = Canvas.GetLeft(this.ParentOfType<MainWindow>().dzMainMenu.dragSelectionBorder);
672
            double y = Canvas.GetTop(this.ParentOfType<MainWindow>().dzMainMenu.dragSelectionBorder);
673
            double width = this.ParentOfType<MainWindow>().dzMainMenu.dragSelectionBorder.Width;
674
            double height = this.ParentOfType<MainWindow>().dzMainMenu.dragSelectionBorder.Height;
675
            Rect dragRect = new Rect(x, y, width, height);
676
            Boolean Flag = false;
677
            dragRect.Inflate(width / 10, height / 10);
678
            List<MarkupToPDF.Common.CommentUserInfo> adornerSet = new List<MarkupToPDF.Common.CommentUserInfo>();
679
            var Items = ViewerDataModel.Instance.MarkupControls_USER.ToList();
680

    
681
            dragRect = new Rect(x, y, width, height);
682
            dragRect.Inflate(width / 10, height / 10);
683

    
684
            //move.mousemode = MarkupToPDF.Controls.Common.MouseMode.Selecting;
685
            //move.
686
            foreach (var item in Items)
687
            {
688
                Flag = SelectionSet.Instance.SelectControl(item, dragRect);
689

    
690
                if (Flag)
691
                {
692
                    adornerSet.Add(item);
693
                    ViewerDataModel.Instance.MarkupControls_USER.Remove(item);
694

    
695
                    this.ParentOfType<MainWindow>().dzMainMenu.Control_Style(item);
696
                    UndoData.Markup_List.Add(multi_Undo_Data);
697
                    multi_Undo_Data = new Multi_Undo_data();
698
                    if (item.GroupID > 0)
699
                    {
700

    
701
                    }
702
                }
703
            }
704
            if (adornerSet.Count > 0)
705
            {
706
                ViewerDataModel.Instance.UndoDataList.Where(data => data.IsUndo == true).ToList().ForEach(i =>
707
                {
708
                    ViewerDataModel.Instance.UndoDataList.Remove(i);
709
                });
710
                ViewerDataModel.Instance.UndoDataList.Add(UndoData);
711

    
712
                Controls.AdornerFinal final = new Controls.AdornerFinal(adornerSet);
713
                this.ParentOfType<MainWindow>().dzMainMenu.SelectLayer.Children.Add(final);
714
            }
715
        }
716

    
717
        ///private Move move;
718
        #region Symbol DoubleClick Event
719
        private void Move_Symbol(object sender, MouseButtonEventArgs e)
720
        {
721
            try
722
            {
723
                Type type = e.OriginalSource.GetType();
724
                string id = string.Empty;
725
                //Logger.sendResLog("Move_Symbol", type.Name, 0);
726
                if (type.Name == "Image")
727
                {
728
                    id = ((e.OriginalSource as Image).DataContext as Symbol_Custom).ID;
729
                }
730
                else if (type.Name == "Border")
731
                {
732
                    id = ((e.OriginalSource as Border).DataContext as Symbol_Custom).ID;
733
                }
734
                else if (type.Name == "TextBox")
735
                {
736
                    id = ((e.OriginalSource as TextBox).DataContext as Symbol_Custom).ID;
737
                }
738

    
739
                IsMouseDown = true;
740

    
741
                if (e.ClickCount > 1)
742
                {
743
                    this.PlaceSymbol(id,ViewerDataModel.Instance.SystemMain.dzMainMenu.CanvasDrawingMouseDownPoint);
744
                }
745
            }
746
            catch(Exception ex)
747
            {
748
                //Logger.sendResLog("Move_Symbol", ex.Message, 0);
749
            }
750
        }
751
        #endregion
752

    
753
        #region Private Symbol Rename Event
754
        private void Rename_Symbol(object sender, RoutedEventArgs e)
755
        {
756
            if (lstSymbolPrivate.SelectedItem == null)
757
            {
758
                DialogMessage_Alert("Please Select Symbol", "Alert");
759
                return;
760
            }
761

    
762
            DialogParameters parameters = new DialogParameters()
763
            {
764
                Owner = Application.Current.MainWindow,
765
                Closed = (obj, args) => this.MarkupReNamePromptClose("", args),
766
                //DefaultPromptResultValue = "Custom State",
767
                DefaultPromptResultValue = (lstSymbolPrivate.SelectedItem as Symbol_Custom).Name,
768
                Content = "Name :",
769
                Header = "Update Custom Symbol Name",
770
                Theme = new VisualStudio2013Theme(),
771
                ModalBackground = new SolidColorBrush { Color = Colors.Black, Opacity = 0.6 },
772
            };
773
            RadWindow.Prompt(parameters);
774

    
775
        }
776
        #endregion
777

    
778
        #region Public Symbol Rename Event
779
        private void Rename_Symbol_Public(object sender, RoutedEventArgs e)
780
        {
781
            if (lstSymbolPublic.SelectedItem == null)
782
            {
783
                DialogMessage_Alert("Please Select Symbol", "Alert");
784
                return;
785
            }
786

    
787
            DialogParameters parameters = new DialogParameters()
788
            {
789
                Owner = Application.Current.MainWindow,
790
                Closed = (obj, args) => this.MarkupReNamePromptClose("", args),
791
                //DefaultPromptResultValue = "Custom State",
792
                DefaultPromptResultValue = (lstSymbolPublic.SelectedItem as Symbol_Custom).Name,
793
                Content = "Name :",
794
                Header = "Update Custom Symbol Name",
795
                Theme = new VisualStudio2013Theme(),
796
                ModalBackground = new SolidColorBrush { Color = Colors.Black, Opacity = 0.6 },
797
            };
798
            RadWindow.Prompt(parameters);
799

    
800
        }
801
        #endregion
802
        #region Symbol Rename Close Event
803
        private void MarkupReNamePromptClose(string data, WindowClosedEventArgs args)
804
        {
805
            if (args.DialogResult != null && args.DialogResult.Value)
806
            {
807
                if(RadTab.SelectedIndex == 0)
808
                {
809
                    string _id = (lstSymbolPrivate.SelectedItem as Symbol_Custom).ID;
810
                    string _name = args.PromptResult;
811
                    Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.RenameSymbolCompleted += BaseClient_RenameSymbolCompleted;
812
                    //Logger.sendReqLog("RenameSymbolAsync: ", _id + "," + _name, 1);
813
                    Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.RenameSymbolAsync(_id, _name, RadTab.SelectedIndex);
814
                }
815
                else
816
                {
817
                    string _id = (lstSymbolPublic.SelectedItem as Symbol_Custom).ID;
818
                    string _name = args.PromptResult;
819
                    Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.RenameSymbolCompleted += BaseClient_RenameSymbolCompleted;
820
                    //Logger.sendReqLog("RenameSymbolAsync: ", _id + "," + _name, 1);
821
                    Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.RenameSymbolAsync(_id, _name, RadTab.SelectedIndex);
822
                }
823
            }
824
        }
825

    
826
        private async void BaseClient_RenameSymbolCompleted(object sender, ServiceDeepView.RenameSymbolCompletedEventArgs e)
827
        {
828
            //Logger.sendResLog("RenameSymbolCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1);
829
            await DataBindAsync();
830
        }
831
        #endregion
832

    
833
        #region Wheel Event
834
        private void lstSymbolPrivate_PreviewMouseWheel(object sender, MouseWheelEventArgs e)
835
        {
836
            ScView.ScrollToVerticalOffset(ScView.ContentVerticalOffset - (e.Delta / 2));
837
        }
838
        private void lstSymbolPublic_PreviewMouseWheel(object sender, MouseWheelEventArgs e)
839
        {
840
            ScView_Public.ScrollToVerticalOffset(ScView_Public.ContentVerticalOffset - (e.Delta / 2));
841
        }
842
        #endregion
843

    
844
        #region Tab Selection Event
845
        private void RadTabControl_PreviewSelectionChanged(object sender, RadSelectionChangedEventArgs e)
846
        {
847
            foreach (var item in (e.OriginalSource as RadTabControl).Items)
848
            {
849
                (item as RadTabItem).FontWeight = FontWeights.Normal;
850
            }
851
            ((e.OriginalSource as RadTabControl).SelectedItem as RadTabItem).FontWeight = FontWeights.Bold;
852
        }
853
        #endregion
854

    
855
        #region Department Selection Event
856
        private async void deptlist_SelectionChanged(object sender, SelectionChangedEventArgs e)
857
        {
858
            await DataBindAsync();
859
        }
860
        #endregion
861

    
862
        #endregion
863

    
864
        private void lstSymbolPrivate_PreviewMouseUp(object sender, MouseButtonEventArgs e)
865
        {
866

    
867
        }
868

    
869
        private void lstSymbolPrivate_MouseLeave(object sender, MouseEventArgs e)
870
        {
871

    
872
        }
873

    
874
        private void lstSymbolPrivate_MouseDown(object sender, MouseButtonEventArgs e)
875
        {
876

    
877
        }
878

    
879
        private void StackPanel_MouseLeave(object sender, MouseEventArgs e)
880
        {
881
            if(IsMouseDown && e.LeftButton == MouseButtonState.Pressed)
882
            {
883
                ViewerDataModel.Instance.SystemMain.dzMainMenu.Symbol_ID = moveItem_id;
884
            }
885
            else
886
            {
887
                IsMouseDown = false;
888
            }
889
        }
890

    
891
        private void StackPanel_MouseUp(object sender, MouseButtonEventArgs e)
892
        {
893
            IsMouseDown = false;
894
        }
895

    
896
        /// <summary>
897
        /// place symbol which user select
898
        /// </summary>
899
        /// <author>humkyung</author>
900
        /// <date>2018.06.14</date>
901
        /// <param name="sender"></param>
902
        /// <param name="e"></param>
903
        private void Place_Symbol(object sender, RoutedEventArgs e)
904
        {
905
            if (lstSymbolPrivate.SelectedItem == null)
906
            {
907
                DialogMessage_Alert("Please Select Symbol",  "Alert");
908
                return;
909
            }
910

    
911
            string id = (lstSymbolPrivate.SelectedItem as Symbol_Custom).ID;
912
            this.PlaceSymbol(id, ViewerDataModel.Instance.SystemMain.dzMainMenu.CanvasDrawingMouseDownPoint);
913
            Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.mouseHandlingMode = IKCOM.MouseHandlingMode.None;
914
        }
915

    
916
        private void Place_Symbol_Public(object sender, RoutedEventArgs e)
917
        {
918
            if (lstSymbolPublic.SelectedItem == null)
919
            {
920
                DialogMessage_Alert("Please Select Symbol", "Alert");
921
                return;
922
            }
923

    
924
            string id = (lstSymbolPublic.SelectedItem as Symbol_Custom).ID;
925
            this.PlaceSymbol(id, ViewerDataModel.Instance.SystemMain.dzMainMenu.CanvasDrawingMouseDownPoint);
926
            Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.mouseHandlingMode = IKCOM.MouseHandlingMode.None;
927
        }
928

    
929
        private void Image_Place_Register(object sender, RoutedEventArgs e)
930
        {
931
            SyncInit();
932
            ViewerDataModel.Instance.SystemMain.dzMainMenu.controlType = MarkupToPDF.Controls.Common.ControlType.ImgControl;
933
            //캡쳐 하기 전에 코멘트 저장
934
            if (Common.ViewerDataModel.Instance.MarkupControls_USER.Count > 0 || (Application.Current.MainWindow as MainWindow).dzMainMenu.SelectLayer.Children.Count > 0)
935
            {
936
                var menu = (Application.Current.MainWindow as MainWindow).dzMainMenu;
937
                SelectionSet.Instance.UnSelect(menu);
938
                if (menu.PreviewUserMarkupInfoItem != null && menu.PreviewUserMarkupInfoItem.IsPreviewUser == true)
939
                {
940
                    (Application.Current.MainWindow as MainWindow).dzTopMenu.SaveEventCallback(null, null);
941
                }
942
                else if (menu.gridViewMarkup.SelectedItems.Count == 0 || (menu.gridViewMarkup.SelectedItems.FirstOrDefault() as IKCOM.MarkupInfoItem).UserID != App.ViewInfo.UserID)
943
                {
944

    
945
                }
946
                else
947
                {
948
                    (Application.Current.MainWindow as MainWindow).dzTopMenu.SaveEventCallback(null, null);
949
                }
950
            }
951
            Application.Current.MainWindow.Focus();
952
            Common.ViewerDataModel.Instance.Capture_Opacity = 0.49;
953
            (Application.Current.MainWindow as MainWindow).dzMainMenu.mouseHandlingMode = IKCOM.MouseHandlingMode.Capture;
954
        }
955

    
956

    
957
        private void SyncInit()
958
        {
959
            try
960
            {
961
                if (!ViewerDataModel.Instance.SystemMain.dzMainMenu.testPanel2.IsHidden)
962
                {
963
                    ViewerDataModel.Instance.SystemMain.dzMainMenu.testPanel2.IsHidden = true;
964
                    ViewerDataModel.Instance.PageBalanceMode = false;
965
                    ViewerDataModel.Instance.PageBalanceNumber = 0;
966
                    ViewerDataModel.Instance.SyncPageNumber = 0;
967
                    ViewerDataModel.Instance.MarkupControls_Sync.Clear();
968
                    ViewerDataModel.Instance.SystemMain.dzMainMenu.gridViewRevMarkup.Visibility = Visibility.Collapsed;
969
                    ViewerDataModel.Instance.SystemMain.dzMainMenu.UserList.IsChecked = false;
970
                    ViewerDataModel.Instance.SystemMain.dzMainMenu.BalanceMode.IsChecked = false;
971
                }
972
            }
973
            catch (Exception ex)
974
            {
975
                //Logger.sendResLog("SyncInit", ex.Message, 0);
976
            }
977
        }
978

    
979
        private void TextBlock_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
980
        {
981
            var block = sender as TextBox;
982
            block.Focusable = true;
983
               
984
        }
985

    
986
        private void TextBlock_MouseEnter(object sender, MouseEventArgs e)
987
        {
988
            var block = sender as TextBox;
989
            if (block != null)
990
            {
991
                //block.Text = "Enter";
992

    
993
            }
994
        }
995

    
996
        private void OnKeyDownHandler(object sender, KeyEventArgs e)
997
        {
998
            if (e.Key == Key.Return)
999
            {
1000
                Type type = e.OriginalSource.GetType();
1001
                string id = string.Empty;
1002
                //Logger.sendResLog("Move_Symbol", type.Name, 0);
1003
                if (type.Name == "Image")
1004
                {
1005
                    id = ((e.OriginalSource as Image).DataContext as Symbol_Custom).ID;
1006
                }
1007
                else if (type.Name == "Border")
1008
                {
1009
                    id = ((e.OriginalSource as Border).DataContext as Symbol_Custom).ID;
1010
                }
1011
                else if (type.Name == "TextBox")
1012
                {
1013
                    id = ((e.OriginalSource as TextBox).DataContext as Symbol_Custom).ID;
1014
                }
1015

    
1016
                //((System.Windows.Controls.TextBox)sender).Text;
1017

    
1018
                if (RadTab.SelectedIndex == 0)
1019
                {
1020
                    //string _id = (lstSymbolPrivate.SelectedItem as Symbol_Custom).ID;
1021
                    string _name = ((System.Windows.Controls.TextBox)sender).Text;
1022
                    Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.RenameSymbolCompleted += BaseClient_RenameSymbolCompleted;
1023
                    //Logger.sendReqLog("RenameSymbolAsync: ", id + "," + _name, 1);
1024
                    Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.RenameSymbolAsync(id, _name, RadTab.SelectedIndex);
1025
                }
1026
                else
1027
                {
1028
                    //string _id = (lstSymbolPublic.SelectedItem as Symbol_Custom).ID;
1029
                    string _name = ((System.Windows.Controls.TextBox)sender).Text;
1030
                    Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.RenameSymbolCompleted += BaseClient_RenameSymbolCompleted;
1031
                    //Logger.sendReqLog("RenameSymbolAsync: ", id + "," + _name, 1);
1032
                    Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.RenameSymbolAsync(id, _name, RadTab.SelectedIndex);
1033
                }
1034
                
1035
            }
1036
        }
1037
        
1038
    }
1039
}
클립보드 이미지 추가 (최대 크기: 500 MB)