개정판 be04d12c
issue #000 telerik:RadNumericUpDown null string error modify
KCOM/Events/Implementation/TopMenuEvent.cs | ||
---|---|---|
664 | 664 |
//강인구 추가(Undo End) |
665 | 665 |
private void cbLineSize_ValueChanged(object sender, RadRangeBaseValueChangedEventArgs e) |
666 | 666 |
{ |
667 |
if (string.IsNullOrEmpty(cbLineSize.Value.ToString())) |
|
668 |
{ |
|
669 |
cbLineSize.Value = cbLineSize.Minimum; |
|
670 |
} |
|
667 | 671 |
List<AdornerMember> AdonerList = GetAdornerItem(); |
668 | 672 |
if (AdonerList.Count > 0) |
669 | 673 |
{ |
... | ... | |
745 | 749 |
|
746 | 750 |
private void cbIntervalSize_ValueChanged(object sender, RadRangeBaseValueChangedEventArgs e) |
747 | 751 |
{ |
752 |
if (string.IsNullOrEmpty(cbIntervalSize.Value.ToString())) |
|
753 |
{ |
|
754 |
cbIntervalSize.Value = cbIntervalSize.Minimum; |
|
755 |
} |
|
748 | 756 |
List<AdornerMember> AdonerList = GetAdornerItem(); |
749 | 757 |
if (AdonerList.Count > 0) |
750 | 758 |
{ |
... | ... | |
785 | 793 |
|
786 | 794 |
private void cbArcLength_ValueChanged(object sender, RadRangeBaseValueChangedEventArgs e) |
787 | 795 |
{ |
796 |
if (string.IsNullOrEmpty(cbArcLength.Value.ToString())) |
|
797 |
{ |
|
798 |
cbArcLength.Value = cbArcLength.Minimum; |
|
799 |
} |
|
788 | 800 |
List<AdornerMember> AdonerList = GetAdornerItem(); |
789 | 801 |
if (AdonerList.Count > 0) |
790 | 802 |
{ |
... | ... | |
1105 | 1117 |
|
1106 | 1118 |
private void comboFontSize_ValueChanged(object sender, RadRangeBaseValueChangedEventArgs e) |
1107 | 1119 |
{ |
1120 |
if (string.IsNullOrEmpty(comboFontSize.Value.ToString())) |
|
1121 |
{ |
|
1122 |
comboFontSize.Value = comboFontSize.Minimum; |
|
1123 |
} |
|
1108 | 1124 |
if (this.ParentOfType<MainWindow>() != null) |
1109 | 1125 |
{ |
1110 | 1126 |
if (this.ParentOfType<MainWindow>().dzMainMenu.SelectLayer.Children.Count > 0) |
... | ... | |
2074 | 2090 |
} |
2075 | 2091 |
|
2076 | 2092 |
private void cbAutoSave_Checked(object sender, RoutedEventArgs e) |
2077 |
{ |
|
2078 |
if(cbAutoSave.IsChecked == true) |
|
2093 |
{
|
|
2094 |
if (cbAutoSave.IsChecked == true)
|
|
2079 | 2095 |
{ |
2080 | 2096 |
SaveTime(true, (int)cbSaveInterval.Value); |
2081 | 2097 |
} |
... | ... | |
2086 | 2102 |
} |
2087 | 2103 |
private void cbSaveInterval_ValueChanged(object sender, RadRangeBaseValueChangedEventArgs e) |
2088 | 2104 |
{ |
2105 |
if(string.IsNullOrEmpty(cbSaveInterval.Value.ToString())) |
|
2106 |
{ |
|
2107 |
cbSaveInterval.Value = cbSaveInterval.Minimum; |
|
2108 |
} |
|
2089 | 2109 |
if (cbAutoSave.IsChecked == true) |
2090 | 2110 |
{ |
2091 | 2111 |
SaveTime(true, (int)cbSaveInterval.Value); |
KCOM/Views/MainMenu.xaml.cs | ||
---|---|---|
3006 | 3006 |
private void zoomAndPanControl_MouseDown(object sender, MouseButtonEventArgs e) |
3007 | 3007 |
{ |
3008 | 3008 |
var set_option = this.ParentOfType<MainWindow>().dzTopMenu.Parent.ChildrenOfType<RadNumericUpDown>().Where(item => item.IsKeyboardFocusWithin).FirstOrDefault(); |
3009 |
if (set_option != null) |
|
3009 |
if (set_option != null && !string.IsNullOrEmpty(set_option.ContentText))
|
|
3010 | 3010 |
{ |
3011 | 3011 |
set_option.Value = double.Parse(set_option.ContentText); |
3012 | 3012 |
} |
내보내기 Unified diff