프로젝트

일반

사용자정보

개정판 c5519c44

IDc5519c446633f637b8f6a207f8ae0e0421def066
상위 83df6f8f
하위 7b095cc3

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

- convert log 수정
- markus text font 변경시 저장 여부 메시지 나오도록 수정
-

Change-Id: I85fa01d063204c85eb5b70bf34a3773f5cb5fd8f

차이점 보기:

ConvertService/ServiceBase/Markus.Service.Convert/ConvertService.cs
193 193
                        string msg = $"ConvertService Error {saveitem.SavePath} Delete Error";
194 194
                        logger.Error(msg);
195 195
                        result.StatusCode = StatusCodeType.FileError;
196
                        result.Message = msg;
196
                        result.Message =  LogHelper.GetStack() + " " +LogHelper.GetStack() + " " + msg;
197 197

  
198 198
                        return result;
199 199
                    }
......
231 231
                                       || Directory.EnumerateFiles(saveitem.SavePath, "*.jpg").Count() != saveitem.TotalPages))
232 232
                    {
233 233
                        result.StatusCode = StatusCodeType.PageError;
234
                        result.Message = "Page Count Error";
234
                        result.Message =  LogHelper.GetStack() + " " +"Page Count Error";
235 235
                        ReConvert = 1;
236 236

  
237 237
                        result = ConvertBigFileProcess(saveitem);
......
264 264
                        else
265 265
                        {
266 266
                            result.StatusCode = StatusCodeType.FileError;
267
                            result.Message =  $"Doc Set Error. {result.Message}";
267
                            result.Message =  LogHelper.GetStack() + " " + $"Doc Set Error. {result.Message}";
268 268
                        }
269 269
                    }
270 270
                    else
271 271
                    {
272 272
                        result.StatusCode = StatusCodeType.FileError;
273
                        result.Message = $"Page List Get Error. {result.Message} ";
273
                        result.Message =  LogHelper.GetStack() + " " +$"Page List Get Error. {result.Message} ";
274 274
                    }
275 275
                }
276 276
                else
......
281 281
            }
282 282
            catch (Exception ex)
283 283
            {
284
                result.Message = "ConvertService Convert Error" + ex.Message;
284
                result.Message =  LogHelper.GetStack() + " " +"ConvertService Convert Error" + ex.Message;
285 285
                result.StatusCode = StatusCodeType.Error;
286 286

  
287 287
                logger.Error(ex);
......
366 366
                            await webClient.DownloadFileTaskAsync(pdfFileUri, downloadFilePath);
367 367
                            webClient.Dispose();
368 368
                        }
369

  
370
                        await Task.Delay(300);
369 371
                    }
370 372
                    catch (Exception ex)
371 373
                    {
......
467 469
                                gMarkusPDF = new MarkusPDF();
468 470
                                gMarkusPDF.pdfLoad(saveitem.PdfFilePath, saveitem.MinimumFontSize, saveitem.UseResolution);
469 471
                            }
472

  
470 473
                            System.Threading.Thread.SpinWait(2);
471 474
                        }
472 475
                    }
473 476
                    catch (Exception ex)
474 477
                    {
475 478
                        result.StatusCode = StatusCodeType.PageError;
476
                        result.Message = "Save Error - " + ex.Message;
479
                        result.Message =  LogHelper.GetStack() + " " +"Save Error - " + ex.Message;
477 480

  
478 481
                        if (gMarkusPDF != null)
479 482
                        {
......
497 500
            catch (Exception ex)
498 501
            {
499 502
                result.StatusCode = StatusCodeType.Error;
500
                result.Message = ex.Message;
503
                result.Message =  LogHelper.GetStack() + " " +ex.Message;
501 504
            }
502 505

  
503 506
            return result;
ConvertService/ServiceBase/Markus.Service.Extensions/Helper/LogHelper.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Diagnostics;
4
using System.Linq;
5
using System.Text;
6
using System.Threading.Tasks;
7

  
8
namespace Markus.Service.Helper
9
{
10
    public static class LogHelper
11
    {
12
        public static string GetStack()
13
        {
14
            StackFrame stackFrame = new StackFrame(1, true);
15
            string fileName = stackFrame.GetFileName();
16
            string methodName = stackFrame.GetMethod().ToString();
17
            int lineNumber = stackFrame.GetFileLineNumber();
18

  
19
           return $"{methodName} {System.IO.Path.GetFileName(fileName)} Line:{lineNumber}";
20
        }
21
    }
22
}
ConvertService/ServiceBase/Markus.Service.Extensions/Markus.Service.Extensions.csproj
68 68
  <ItemGroup>
69 69
    <Compile Include="Exntensions\CollectionExtenstions.cs" />
70 70
    <Compile Include="Exntensions\GenericPluginLoader.cs" />
71
    <Compile Include="Helper\LogHelper.cs" />
71 72
    <Compile Include="Exntensions\Sytem.IO.cs" />
72 73
    <Compile Include="Exntensions\SytemNet.cs" />
73 74
    <Compile Include="Helper\Compress.cs" />
ConvertService/ServiceBase/ServiceTestApp/MainWindow.xaml
78 78
                <Button Grid.Row="6" Content="Get Confing Section Test" Click="ConfingSectionTest_click"/>
79 79
                <Button Grid.Row="7" Content="PEMSS PlugIn Test" Click="PemssPluginTest_click"/>
80 80
                <Button Grid.Row="8" Content="Monitor Service Test" Click="MonitorTest_Click"/>
81
                <Button Grid.Row="9" Content="Get Stack Test" Click="GetStackTest_Click"/>
81 82
            </Grid>
82 83
        </Grid>
83 84
        <Grid Grid.Row="3" Margin="0,10">
ConvertService/ServiceBase/ServiceTestApp/MainWindow.xaml.cs
817 817

  
818 818
            return builder.ToString();
819 819
        }
820

  
821
        private void GetStackTest_Click(object sender, RoutedEventArgs e)
822
        {
823
            System.Windows.MessageBox.Show(LogHelper.GetStack());
824
        }
820 825
    }
821 826

  
822 827

  
KCOM/Common/Converter/ColorListToBrushConverter.cs
32 32
                    foreach (var item in newList)
33 33
                    {
34 34
                        Color _color = Common.Converter.StringToColorConverter.Parse(item.DisplayColor);
35
                        _color.A = (byte)90;
35
                        _color.A = 0x5A;
36 36
                        GradientStop _stop = new GradientStop { Color = _color, Offset = _offset };
37 37
                        _offset = 1.0 / (double)(newList.Count()) * _count; /// 색을 분리하기 위해서
38 38
                        GradientStop _stop2 = new GradientStop { Color = _color, Offset = _offset };
KCOM/Common/ImageAsyncHelper.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Net;
5
using System.Text;
6
using System.Threading.Tasks;
7
using System.Windows;
8
using System.Windows.Data;
9

  
10
namespace KCOM.Common
11
{
12
    public class ImageAsyncHelper : DependencyObject
13
    {
14
        public static Uri GetSourceUri(DependencyObject obj) { return (Uri)obj.GetValue(SourceUriProperty); }
15
        public static void SetSourceUri(DependencyObject obj, Uri value) { obj.SetValue(SourceUriProperty, value); }
16

  
17
        public static readonly DependencyProperty SourceUriProperty = DependencyProperty.RegisterAttached("SourceUri", typeof(Uri), typeof(ImageAsyncHelper), new PropertyMetadata
18
        {
19
            PropertyChangedCallback = (obj, e) =>
20
            {
21
                //if (((System.Windows.Controls.Image)obj).Source == null)
22
                //{
23
                    System.Diagnostics.Debug.WriteLine(e.NewValue);
24

  
25
                    ((System.Windows.Controls.Image)obj).SetBinding(System.Windows.Controls.Image.SourceProperty,
26
                        new Binding("VerifiedUri")
27
                        {
28
                            Source = new ImageAsyncHelper { GivenUri = (Uri)e.NewValue },
29
                            IsAsync = true,
30
                        });
31
                //}
32
            }
33
        });
34

  
35
        Uri GivenUri;
36
        public Uri VerifiedUri
37
        {
38
            get
39
            {
40
                try
41
                {
42
                    //Dns.GetHostEntry(GivenUri.DnsSafeHost);
43
                    return GivenUri;
44
                }
45
                catch (Exception)
46
                {
47
                    return null;
48
                }
49

  
50
            }
51
        }
52
    }
53
}
KCOM/Common/InitData.cs
50 50
                }
51 51
            }
52 52
            comboFontFamily.ItemsSource = fontSet.ToList();
53

  
54
            if (KCOM.Properties.Settings.Default.FontFamily != null)
55
            {
56
                comboFontFamily.SelectedItem = KCOM.Properties.Settings.Default.FontFamily;
57
            }
53 58
        }        
54 59
        
55 60
        /// <summary>
KCOM/Controls/Sample.xaml
428 428
            </Grid>
429 429
        </ControlTemplate>
430 430
        <DataTemplate x:Key="CommentSelectTemplate">
431
            <CheckBox IsChecked="{Binding IsSelected, Mode=TwoWay}" telerik:StyleManager.Theme="Windows8">
431
            <CheckBox IsChecked="{Binding IsSelected, Mode=TwoWay}" telerik:StyleManager.Theme="Windows8"
432
                      Command="{Binding SelectCommentCommand, ElementName=userControl, Mode=OneWay}">
432 433
                <StackPanel Orientation="Horizontal">
433 434
                    <TextBlock Text="{Binding Depart}" />
434 435
                    <TextBlock Text="/" />
......
473 474
                                        ItemContainerStyle="{StaticResource ItemContainerStyle}"
474 475
                                        BorderBrush="#FFC2C2C2" BorderThickness="0"  
475 476
                                        SelectedIndex="0"
477
                                         VirtualizingStackPanel.VirtualizationMode="Recycling"
478
                                        VirtualizingStackPanel.IsVirtualizing="True"
476 479
                                        ScrollViewer.HorizontalScrollBarVisibility="Disabled"
477
                                        ScrollViewer.VerticalScrollBarVisibility="Auto"                                        
480
                                        ScrollViewer.VerticalScrollBarVisibility="Auto"
478 481
                                        ScrollViewer.CanContentScroll="True"
479 482
                                        telerik:StyleManager.Theme="Office2016" 
480
                                        ItemsSource="{Binding FilteredThumbnail.View, ElementName=userControl}" >
483
                                        ItemsSource="{Binding FilteredThumbnail.View, ElementName=userControl}">
481 484
                        <!--<telerik:RadListBox.ItemsPanel>
482 485
                            <ItemsPanelTemplate>
483 486
                                <VirtualizingStackPanel/>
......
498 501
                                                <Border.RenderTransform>
499 502
                                                    <RotateTransform Angle="{Binding Angle, Mode=TwoWay}"/>
500 503
                                                </Border.RenderTransform>
501
                                                <Image Stretch="Uniform" Source="{Binding ImageUri,IsAsync=True}"/>
504
                                                <Image Stretch="Uniform" common:ImageAsyncHelper.SourceUri="{Binding ImageUri}"/>
502 505
                                            </Border>
503 506
                                        </Grid>
504 507
                                        <TextBlock Grid.Row="1" Text="{Binding PageNumber, FallbackValue=PageNo}" FontStyle="Italic" FontSize="14" VerticalAlignment="Bottom" HorizontalAlignment="Center"/>
KCOM/Controls/Sample.xaml.cs
28 28
    {
29 29
        public List<FAVORITE_DOC> _FavoriteSet { get; set; }
30 30
        public event PropertyChangedEventHandler PropertyChanged;
31
        public DelegateCommand SelectCommentCommand { get; private set; }
31 32

  
32 33
        //PageManager.PageStorage samplePageStorage;
33 34

  
......
55 56
            if(!_Initialize)
56 57
            {
57 58
                _Initialize = true;
59

  
60
                SelectCommentCommand = new DelegateCommand(SetCommentPages);
61

  
58 62
                this.SizeChanged += Sample_SizeChanged;
59 63
                this.lstSelectComment.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(lstSelectComment_SelectionChanged);
60 64
                this.ImgListbox.SelectionChanged += new SelectionChangedEventHandler(ImgListbox_SelectionChanged);                
......
105 109
        public event EventHandler<PageChangeEventArgs> PageChanged;
106 110
        public event EventHandler<PageChangeEventArgs> PageChanging;
107 111

  
108
        private List<UsersCommentPagesMember> _UsersCommentPagesList;
112
        private ObservableCollection<UsersCommentPagesMember> _UsersCommentPagesList;
109 113

  
110
        public List<UsersCommentPagesMember> UsersCommentPagesList
114
        public ObservableCollection<UsersCommentPagesMember> UsersCommentPagesList
111 115
        {
112 116
            get {
113 117
                if(_UsersCommentPagesList == null)
114 118
                {
115
                    _UsersCommentPagesList = new List<UsersCommentPagesMember>();
119
                    _UsersCommentPagesList = new ObservableCollection<UsersCommentPagesMember>();
116 120
                }
117 121

  
118 122
                return _UsersCommentPagesList; }
......
488 492
        {
489 493
            SetCommentPages();
490 494
        }
491
        
492
        void user_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
493
        {
494
            SetCommentPages();
495
            //System.Diagnostics.Debug.WriteLine(e.PropertyName);
496
        }
497 495

  
498
        public async void SetCommentPages()
496
        public async void SetCommentPages(object obj = null)
499 497
        {
500 498
            await this.Dispatcher.InvokeAsync(() => ThumbnailSetAsync());
501 499
        }
......
535 533

  
536 534
            UsersCommentPagesList.ForEach(user =>
537 535
            {
538
                user.PropertyChanged -= new System.ComponentModel.PropertyChangedEventHandler(user_PropertyChanged);
539
                user.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(user_PropertyChanged);
536
                //user.PropertyChanged -= new System.ComponentModel.PropertyChangedEventHandler(user_PropertyChanged);
537
                //user.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(user_PropertyChanged);
540 538

  
541 539
                var _commLst = this.UsersCommentPagesList.Where(o => o.MarkupInfoID == user.MarkupInfoID);
542 540

  
......
570 568

  
571 569
            Logger.sendCheckLog("SetCommentList_SelectComment.ItemsSource 설정", 1);
572 570
            var data = UsersCommentPagesList.OrderByDescending(p => p.isConSolidation == Convert.ToInt32(true)).ToList();
571

  
573 572
            if (data.Count() != 0)
574 573
            {
575 574
                if (Convert.ToBoolean(data.First().isConSolidation))
......
578 577
                    data.Where(p => p.isConSolidation == Convert.ToInt32(true)).FirstOrDefault().Depart = "";
579 578
                    this.lstSelectComment.ItemsSource = data;
580 579
                }
581
                else
582
                {
583
                    this.lstSelectComment.ItemsSource = this.UsersCommentPagesList;  //섬네일   
584
                }
585
            }
586
            else
587
            {
588
                this.lstSelectComment.ItemsSource = this.UsersCommentPagesList;  //섬네일   
589 580
            }
590 581

  
582
            this.lstSelectComment.ItemsSource = this.UsersCommentPagesList;  //섬네일   
583

  
591 584
            Logger.sendCheckLog("SetComme6ntList_ImgListbox 설정", 1);
592 585

  
593 586

  
......
611 604

  
612 605
                var items = from page in pageList
613 606
                            let pageLink = uri.Replace("{PageNo}", page.PAGE_NUMBER.ToString())
614
                            orderby page.PAGE_NUMBER
615 607
                            select new ThumbnailItem
616 608
                            {
617 609
                                ImageUri = new Uri(pageLink),
......
622 614

  
623 615
                _thumbnailItems = new ObservableCollection<ThumbnailItem>(items);
624 616
                FilteredThumbnail = new CollectionViewSource();
617
                FilteredThumbnail.SortDescriptions.Add(new SortDescription { Direction = ListSortDirection.Ascending, PropertyName = "PageNumber" });
618

  
625 619
                FilteredThumbnail.Source = _thumbnailItems;
626 620

  
627 621
                FilterPages = _thumbnailItems.Select(x=>x.PageNumber).ToList();
KCOM/Controls/SearchPanel.xaml.cs
264 264
                if (btnSearch.Content.ToString() == _strCancel)
265 265
                {
266 266
                    IsCancelWork = true;
267
                    worker.CancelAsync();
267 268
                }
268 269

  
269 270
                if (!worker.IsBusy)
KCOM/Events/Implementation/TopMenuEvent.cs
84 84
            }
85 85
        }
86 86

  
87
        /// <summary>
88
        ///  comment의 속성 변경시 저장여부 확인 하도록 undocommand에 추가
89
        /// </summary>
90
        /// <param name="adnoerFinal"></param>
91
        public void ChangeComment(Controls.AdornerFinal adnoerFinal)
92
        {
93
            var adornerMembers = adnoerFinal.Members.Cast<Controls.AdornerMember>();
94

  
95
            if (adornerMembers.Count() > 0)
96
            {
97
                UndoCommand.Instance.Push(adornerMembers.Select(x => x.DrawingData).Cast<CommentUserInfo>().ToList(), adnoerFinal.AngleValue);
98
            }
99
        }
100

  
87 101
        //강인구 추가(Undo End)
88 102
        private void SetPaintEvent()
89 103
        {
......
350 364
                            ViewerDataModel.Instance._markupInfoList.Where(data => data.MarkupInfoID == (item as IKCOM.MarkupInfoItem).MarkupInfoID).FirstOrDefault().UpdateTime = DateTime.Now;
351 365
                            if (!ViewerDataModel.Instance.IsConsolidate && (sender != null))
352 366
                            {
353
                                this.ParentOfType<MainWindow>().DialogMessage_Alert("Save 가 완료되었습니다.", "Alert");
367
                                this.ParentOfType<MainWindow>().DialogMessage_Alert("Save is complete.", "Info");
354 368
                            }
355 369
                        }
356 370
                    }
......
1129 1143
                                        break;
1130 1144
                                }
1131 1145
                            }
1146

  
1147
                            ChangeComment(item as Controls.AdornerFinal);
1132 1148
                        }
1133 1149
                    }
1134 1150
                }
1135 1151
            }
1152

  
1136 1153
            KCOM.Properties.Settings.Default.TextSize = (double)comboFontSize.Value;
1137 1154
            Properties.Settings.Default.Save();
1138 1155
        }
......
1140 1157
        //강인구 추가
1141 1158
        private void RadRibbonComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
1142 1159
        {
1143
            if (this.ParentOfType<MainWindow>() != null)
1160
            if (this.ParentOfType<MainWindow>()?.dzMainMenu.SelectLayer.Children.Count > 0)
1144 1161
            {
1145
                if (this.ParentOfType<MainWindow>().dzMainMenu.SelectLayer.Children.Count > 0)
1162
                foreach (var item in this.ParentOfType<MainWindow>().dzMainMenu.SelectLayer.Children)
1146 1163
                {
1147
                    foreach (var item in this.ParentOfType<MainWindow>().dzMainMenu.SelectLayer.Children)
1164
                    if (item.GetType().Name == "AdornerFinal")
1148 1165
                    {
1149
                        if (item.GetType().Name == "AdornerFinal")
1166
                        var adnoerFinal = (item as Controls.AdornerFinal);
1167

  
1168
                        var adornerMembers = adnoerFinal.Members.Cast<Controls.AdornerMember>();
1169

  
1170
                        foreach (var InnerItem in adornerMembers)
1150 1171
                        {
1151
                            foreach (var InnerItem in (item as Controls.AdornerFinal).Members.Cast<Controls.AdornerMember>())
1172
                            switch (InnerItem.DrawingData.GetType().Name)
1152 1173
                            {
1153
                                switch (InnerItem.DrawingData.GetType().Name)
1154
                                {
1155
                                    case ("TextControl"):
1156
                                        {
1157
                                            //if ((InnerItem.DrawingData as MarkupToPDF.Controls.Text.TextControl).FontFamily == TextDecorations.Underline)
1158
                                            //{
1159
                                            (InnerItem.DrawingData as MarkupToPDF.Controls.Text.TextControl).SetFontFamily(new FontFamily(comboFontFamily.Text));
1160
                                            //(InnerItem.DrawingData as MarkupToPDF.Controls.Text.TextControl).Base_TextBlock.FontFamily = new FontFamily(comboFontFamily.Text);
1161
                                            //(InnerItem.DrawingData as MarkupToPDF.Controls.Text.TextControl).Base_TextBox.FontFamily = new FontFamily(comboFontFamily.Text);
1162
                                            //(InnerItem.DrawingData as MarkupToPDF.Controls.Text.TextControl).TextFamily = new FontFamily(comboFontFamily.Text);
1163
                                            //}
1164
                                            //else
1165
                                            //{
1166
                                            //    (InnerItem.DrawingData as MarkupToPDF.Controls.Text.TextControl).UnderLine = TextDecorations.Underline;
1167
                                            //}
1168
                                        }
1169
                                        break;
1170
                                    case ("ArrowTextControl"):
1171
                                        {
1172
                                            (InnerItem.DrawingData as MarkupToPDF.Controls.Text.ArrowTextControl).SetFontFamily(new FontFamily(comboFontFamily.Text));
1173
                                            //if ((InnerItem.DrawingData as MarkupToPDF.Controls.Text.ArrowTextControl).UnderLine == TextDecorations.Underline)
1174
                                            //{
1175
                                            //    (InnerItem.DrawingData as MarkupToPDF.Controls.Text.ArrowTextControl).UnderLine = null;
1176
                                            //}
1177
                                            //else
1178
                                            //{
1179
                                            //    (InnerItem.DrawingData as MarkupToPDF.Controls.Text.ArrowTextControl).UnderLine = TextDecorations.Underline;
1180
                                            //}
1181
                                        }
1174
                                case ("TextControl"):
1175
                                        (InnerItem.DrawingData as MarkupToPDF.Controls.Text.TextControl).SetFontFamily(new FontFamily(comboFontFamily.Text));
1182 1176
                                        break;
1183
                                }
1177
                                case ("ArrowTextControl"):
1178
                                        (InnerItem.DrawingData as MarkupToPDF.Controls.Text.ArrowTextControl).SetFontFamily(new FontFamily(comboFontFamily.Text));
1179
                                    break;
1184 1180
                            }
1185 1181
                        }
1182

  
1183
                        ChangeComment(adnoerFinal);
1186 1184
                    }
1187 1185
                }
1188 1186
            }
1187

  
1188
            KCOM.Properties.Settings.Default.FontFamily = comboFontFamily.Text;
1189
            Properties.Settings.Default.Save();
1189 1190
        }
1190 1191

  
1192

  
1191 1193
        /// <summary>
1192 1194
        /// 텍스트 컨트롤 하일라이트 처리
1193 1195
        /// </summary>
KCOM/KCOM.csproj
424 424
    <Compile Include="Common\Converter\SvgConverter.cs" />
425 425
    <Compile Include="Common\Converter\SvgImageConverter.cs" />
426 426
    <Compile Include="Common\FileStreamToBase64.cs" />
427
    <Compile Include="Common\ImageAsyncHelper.cs" />
427 428
    <Compile Include="Common\ImageSourceHelper.cs" />
428 429
    <Compile Include="Common\ISplashMessage.cs" />
429 430
    <Compile Include="Common\MarkupUserInfo.cs" />
KCOM/Properties/Settings.Designer.cs
261 261
                this["cad"] = value;
262 262
            }
263 263
        }
264
        
265
        [global::System.Configuration.UserScopedSettingAttribute()]
266
        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
267
        [global::System.Configuration.DefaultSettingValueAttribute("")]
268
        public string FontFamily {
269
            get {
270
                return ((string)(this["FontFamily"]));
271
            }
272
            set {
273
                this["FontFamily"] = value;
274
            }
275
        }
264 276
    }
265 277
}
KCOM/Properties/Settings.settings
68 68
    <Setting Name="cad" Type="System.Int32" Scope="User">
69 69
      <Value Profile="(Default)">0</Value>
70 70
    </Setting>
71
    <Setting Name="FontFamily" Type="System.String" Scope="User">
72
      <Value Profile="(Default)" />
73
    </Setting>
71 74
  </Settings>
72 75
</SettingsFile>
KCOM/Views/TopMenu.xaml
491 491
                    
492 492
                    <telerik:RadOrderedWrapPanel>
493 493
                        <StackPanel Orientation="Horizontal">
494
                            <telerik:RadRibbonComboBox Width="60" Name="comboFontFamily" SelectedIndex="0" telerik:ScreenTip.Title="Font" telerik:ScreenTip.Description="Change the font face." 
495
                                                       SelectionChanged="RadRibbonComboBox_SelectionChanged"
494
                            <telerik:RadRibbonComboBox Width="60" Name="comboFontFamily" SelectedIndex="0" telerik:ScreenTip.Title="Font" 
495
                                                       telerik:ScreenTip.Description="Change the font face."
496 496
                                                       IsEditable="False"/>
497 497
                            <telerik:RadNumericUpDown x:Name="comboFontSize"
498 498
                                                      Width="35"
KCOM/Views/TopMenu.xaml.cs
36 36
        {
37 37
            if(!_Initialize)
38 38
            {
39
                InitDataSet();
40

  
39 41
                _Initialize = true;
40 42

  
41
                InitDataSet();
43
                comboFontFamily.SelectionChanged += RadRibbonComboBox_SelectionChanged;
44

  
42 45
                if (!App.ViewInfo.CreateFinalPDFPermission && !App.ViewInfo.NewCommentPermission)
43 46
                {
44 47
                    SAVE.Visibility = Visibility.Collapsed;
KCOM/app.config
160 160
      <setting name="cad" serializeAs="String">
161 161
        <value>0</value>
162 162
      </setting>
163
      <setting name="FontFamily" serializeAs="String">
164
        <value />
165
      </setting>
163 166
    </KCOM.Properties.Settings>
164 167
  </userSettings>
165 168
  <system.serviceModel>

내보내기 Unified diff

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