프로젝트

일반

사용자정보

개정판 1b2cf911

ID1b2cf9119e2de47cede9f473e1742592b6dceee9
상위 41c4405e
하위 43d2041c

김태성이(가) 약 4년 전에 추가함

ArrowTextControl 수정

Change-Id: I6bce182ed18f0c65dc7587d0d84bccac557fdf0b

차이점 보기:

KCOM/Views/MainMenu.xaml.cs
2659 2659

  
2660 2660
            ConvertInkControlToPolygon();
2661 2661

  
2662
            ///TODO:
2662
            // 텍스트가 없으면 삭제됨
2663 2663
            var text_item = ViewerDataModel.Instance.MarkupControls_USER.Where(data =>
2664 2664
            (data as TextControl) != null && (data as TextControl).Text == "" || (data as ArrowTextControl) != null && (data as ArrowTextControl).ArrowText == "").FirstOrDefault();
2665 2665

  
2666 2666
            if (text_item != null && (currentControl as ArrowTextControl) == null)
2667 2667
            {
2668
                ViewerDataModel.Instance.MarkupControls_USER.Remove(text_item);
2668
                DeleteCommand.Instance.Execute(new[] { text_item });
2669
                //ViewerDataModel.Instance.MarkupControls_USER.Remove(text_item);
2669 2670
            }
2670 2671
            /// up to here
2671 2672

  
......
3887 3888
                                    }
3888 3889

  
3889 3890
                                    CreateCommand.Instance.Execute(currentControl);
3891
                                    ViewerDataModel.Instance.MarkupControls_USER.Add(currentControl);
3890 3892

  
3891 3893
                                    (currentControl as ArrowTextControl).Base_TextBox.IsHitTestVisible = false;
3892 3894
                                    (currentControl as ArrowTextControl).EnableEditing = false;
......
4405 4407
                        break;
4406 4408
                }
4407 4409

  
4410
                if (currentControl is ArrowTextControl)
4411
                {
4412
                    (currentControl as ArrowTextControl).EditEnded += (snd, evt) =>
4413
                    {
4414
                        var control = snd as ArrowTextControl;
4415

  
4416
                        if (string.IsNullOrEmpty(control.ArrowText))
4417
                        {
4418
                            DeleteCommand.Instance.Execute(new [] { control });
4419
                        }
4420
                    };
4421

  
4422
                }
4408 4423
                //if (currentControl != null)
4409 4424
                //{
4410 4425
                //    currentControl.PageAngle = pageNavigator.CurrentPage.Angle;

내보내기 Unified diff

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